Skip to content

Instantly share code, notes, and snippets.

@dzwarg
dzwarg / gist:2352056
Created April 10, 2012 15:13
noUiSlider toggle offset bug
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>noUiSlider layout bug.</title>
<link rel="stylesheet" type="text/css" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css"/>
<link rel="stylesheet" type="text/css" href="nouislider.css"/>
<script type="text/javascript" src="jquery-1.7.1.js"></script>
<script type="text/javascript" src="http://twitter.github.com/bootstrap/assets/js/bootstrap-button.js"></script>
<script type="text/javascript" src="jquery.nouislider.js"></script>
@dzwarg
dzwarg / gist:1676990
Created January 25, 2012 16:11
Patch for development version upgrade
diff --git a/django/publicmapping/redistricting/management/commands/database_i18n.py b/django/publicmapping/redistricting/manageme
index a889235..3702116 100644
--- a/django/publicmapping/redistricting/management/commands/database_i18n.py
+++ b/django/publicmapping/redistricting/management/commands/database_i18n.py
@@ -100,7 +100,7 @@ class Command(BaseCommand):
# The short label for all districts in this body
poutil.add_or_update(
msgid=u'%s short label' % legislativebody.name,
- msgstr=legislativebody.title.replace('%s', '%(district_id)s')
+ msgstr=legislativebody.short_label.replace('%s', '%(district_id)s')
@dzwarg
dzwarg / git.tcl
Created October 20, 2011 19:42
DistrictBuilder IRC git info bot
global repo
set repo "/projects/PublicMapping/DistrictBuilder"
global ghurl
set ghurl "https://github.com/PublicMapping/DistrictBuilder/"
bind msg -|- ".help" helphandle
proc helphandle {nick host handle txt} {
puthelp "PRIVMSG $nick :I recongize the following commands:"
puthelp "PRIVMSG $nick : .rXYZ : Get the author, time, log message, and URL of commit XYZ."
puthelp "PRIVMSG $nick : .#XYZ : Get the title and URL to issue XYZ in GitHub."