This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
slugs = ['unipain', 'pyiter', 'pypackages', 'pytest0', 'ircbot'] | |
print('\n'.join('http://bit.ly/{0}'.format(slug) for slug in slugs)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Extract all attachments from MS Outlook '.eml' file EML_FILE into | |
directory OUTPUT_DIR. If OUTPUT_DIR does not exist, it will be | |
created. | |
Usage: extract_attachments.py EML_FILE OUTPUT_DIR | |
""" | |
from __future__ import print_function | |
import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class IndexProxy(object): | |
""" | |
Proxies access to a multidimensional sequence. | |
When the constructor is provided with a sequence of dimension N, | |
item access with iterables of length <= N will retrieve the subsequence | |
or item at the depth corresponding to the distance. For example: | |
ip = IndexProxy(multiseq) | |
ip[1,4] == multiseq[1][4] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.py[co] |
NewerOlder