Hawkes Blog
Windows reboot | Linux be root
Hawkes Blog
A Highlight test with SyntaxHighlighter

A Highlight test with SyntaxHighlighter

SyntaxHighlighter

bash

case "$1" in
  start)
        echo -n "Starting $DESC: "
        start-stop-daemon --start --chuid $OWNER:$OWNER --user $OWNER \
                --exec $DAEMON -- $DAEMON_OPTS
        echo "$NAME."
        ;;
  stop)
        echo -n "Stopping $DESC: "
        start-stop-daemon --signal 3 --user $OWNER --quiet --retry 2 --stop \
                --exec $DAEMON
        echo "$NAME."
        ;;

python

import uwsgi
import os

os.environ["HGENCODING"] = "UTF-8"

from mercurial import demandimport; demandimport.enable()
from mercurial.hgweb.hgwebdir_mod import hgwebdir

application = hgwebdir('/var/www/repo/repo.conf')

js

$(document).on("click", "table.dynatable button.remove", function() {
//console.log($('table.dynatable tr').length);
var parts = this.id.match(/(\D+)(\d+)$/);
//remove render div
$('#render-' + parts[2]).remove();
//remove table row
$(this).parents("tr").remove();
});

  • 1
  • 2