Skip to content

Instantly share code, notes, and snippets.

Bill Mill llimllib

Block or report user

Report or block llimllib

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:272726,+longitude+180
View gist:277499
valuestr = ", ".join("%%(%s)s" % r for r in column_names)
fetchnone_query(conn, """
INSERT INTO %%(table_name)s (%%(column_names)s)
""" % valuestr, locals())
View gist:287827
def perm1c(lst):
"""A modification of perm1b to return a copied list instead of modified in place"""
initial = lst[:]
yield lst
lst = lst[:]
if len(lst) == 1: return
n = len(lst) - 1
while 1:
llimllib / gist:289503
Created Jan 29, 2010
just backing something up
View gist:289503
Index: Modules/itertoolsmodule.c
--- Modules/itertoolsmodule.c (revision 77795)
+++ Modules/itertoolsmodule.c (working copy)
@@ -2312,7 +2312,6 @@
PyObject_GC_Del, /* tp_free */
/* permutations object ************************************************************
View gist:294962
static PyObject *
sys_exit(PyObject *self, PyObject *args)
PyObject *exit_code = 0;
if (!PyArg_UnpackTuple(args, "exit", 0, 1, &exit_code))
return NULL;
/* Raise SystemExit so callers may catch it or clean up. */
PyErr_SetObject(PyExc_SystemExit, exit_code);
return NULL;
View gist:340849
diff --git a/background_page.html b/background_page.html
index 978409b..8a78c97 100644
--- a/background_page.html
+++ b/background_page.html
@@ -38,6 +38,8 @@
'border:1px solid #E3BE23;' +
'z-index:99999999;' +
'font-family:"Helvetica Neue", "Helvetica", "Arial", "Sans";' +
+ 'top:0px;' +
+ 'left:0px;' +
View gist:352148
01:38 PM ~/code/sortvis master
$ pry test
Traceback (most recent call last):
File "/Users/bill/code/sortvis/test/", line 39, in test_draw
View gist:356615
01:07 PM ~/code/sortvis master$ ./dense
Traceback (most recent call last):
File "./dense", line 124, in <module>
File "./dense", line 119, in main
File "../libsortvis/", line 164, in draw
File "../libsortvis/", line 94, in drawPixels
File "../libsortvis/", line 184, in getColor
File "/Library/Python/2.5/site-packages/scurve/", line 19, in fromSize
View gist:364901
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I"lib:test" "/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/agreement_test.rb" "test/unit/announcement_test.rb" "test/unit/appconfig_test.rb" "test/unit/application_lock_test.rb" "test/unit/arin_autonomous_system_test.rb" "test/unit/arin_net_range_test.rb" "test/unit/arin_org_name_test.rb" "test/unit/as_path_test.rb" "test/unit/autonomous_system_peer_test.rb" "test/unit/autonomous_system_test.rb" "test/unit/bookmark_test.rb" "test/unit/borders_test.rb" "test/unit/botnet_test.rb" "test/unit/category_test.rb" "test/unit/cidr_test.rb" "test/unit/contract_test.rb" "test/unit/country_test.rb" "test/unit/data_update_test.rb" "test/unit/event_test.rb" "test/unit/feed_test.rb" "test/unit/feedback_test.rb" "test/unit/fingerprint_test.rb" "test/unit/forgot_password_nonce_test.rb" "test/unit/fusecontroller_source_test.rb" "test/unit/group_test.rb" "test/unit/helpers/contract_helper_test.rb" "test/unit/helpers/data_helpe
View gist:401415
Request URL:http://localhost:3000/map/polys
Request Method:POST
Status Code:500 Internal Server Error
Request Headers
Accept:text/javascript, text/html, application/xml, text/xml, */*
Content-type:application/json; charset=UTF-8
User-Agent:Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-US) AppleWebKit/533.9 (KHTML, like Gecko) Chrome/6.0.401.1 Safari/533.9
You can’t perform that action at this time.