by Lewis Carroll
Illustrated by Sir John Tenniel
eBooks@Adelaide
2009
$ curl -s http://schmichael.com/files/LinkedInPasswordHashes.txt.bz2 | bzip2 -cd | grep `python -c 'import hashlib,os;print hashlib.sha1("YOUR LINKEDIN PASSWORD").hexdigest()[5:]'` | |
# me preferred method: | |
$ wget http://schmichael.com/files/LinkedInPasswordHashes.txt.bz2 | |
$ cat LinkedInPasswordHashes.txt.bz2 | bzip2 -cd | grep `python -c 'import hashlib,os;print hashlib.sha1("YOUR LINKEDIN PASSWORD").hexdigest()[5:]'` |
-- http://elasticthreads.tumblr.com/post/1236548752/control-your-mac-from-ios-using-dropbox-and-applescript | |
on adding folder items to this_folder after receiving this_item | |
try | |
--make sure its not a folder | |
if (this_item as string) does not end with ":" then | |
run script this_item | |
end if | |
end try | |
end adding folder items to |
Project Gutenberg's Alice's Adventures in Wonderland, by Lewis Carroll
This eBook is for the use of anyone anywhere at no cost and with almost no restrictions whatsoever. You may copy it, give it away or re-use it under the terms of the Project Gutenberg License included with this eBook or online at www.gutenberg.org
Title: Alice's Adventures in Wonderland
$ ./pip.sh outdated | |
Fabric (1.4.3 != 1.5.1) | |
gunicorn (0.17.0 != 0.17.2) | |
$ ./pip.sh install -U gunicorn | |
Downloading/unpacking gunicorn==0.17.2 | |
Using download cache from /Users/jefftriplett/.pip/download_cache/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fg%2Fgunicorn%2Fgunicorn-0.17.2.tar.gz | |
Running setup.py egg_info for package gunicorn | |
Installing collected packages: gunicorn |
from django.db.models import Manager | |
class ActivePeopleManager(Manager): | |
def get_query_set(self): | |
return super(ActivePeopleManager, self).get_query_set().filter(is_active=True) | |
class StaffPeopleManager(ActivePeopleManager): |
# example from: http://stackoverflow.com/questions/68630/are-tuples-more-efficient-than-lists-in-python | |
$ python -m timeit "x=(1,2,3,4,5,6,7,8)" | |
10000000 loops, best of 3: 0.0571 usec per loop | |
$ python -m timeit "x=[1,2,3,4,5,6,7,8]" | |
1000000 loops, best of 3: 0.254 usec per loop | |
$ python -m timeit -s "x=(1,2,3,4,5,6,7,8)" "y=x[3]" | |
10000000 loops, best of 3: 0.0758 usec per loop |
from xml.dom import minidom | |
from xml.etree import ElementTree | |
def prettify(elem): | |
""" | |
Return a pretty-printed XML string for the Element. | |
""" | |
rough_string = ElementTree.tostring(elem, 'utf-8') |