Skip to content

Instantly share code, notes, and snippets.

View AdamG's full-sized avatar

Adam Gomaa AdamG

  • San Francisco, CA
View GitHub Profile
% python2
Python 2.7.4 (default, Apr 19 2013, 18:28:01)
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cgi
>>> data = 'next=/contact/200/106260296&next=/contact/200/106260296&next=/contact/200/106260296&next=/contact/200/106260296&'
>>> x = cgi.parse_qs(data)
>>> next_list = x['next']
>>> print next_list
['/contact/200/106260296', '/contact/200/106260296', '/contact/200/106260296', '/contact/200/106260296']
http://disco.readthedocs.org/en/0.4.5/start/download.html
> deb http://discoproject.org/debian /
$ sudo apt-get update -q
[snip]
W: Failed to fetch http://discoproject.org/debian/Packages 404 Not Found
?:(
a268e8b37be31c39e33cace27341fbc63406c0a0