I hereby claim:
- I am bloomonkey on github.
- I am bloomonkey (https://keybase.io/bloomonkey) on keybase.
- I have a public key ASB7T45eCErQED60GdPMocBfSVFSQU6EfBRHN_y3LEPeSAo
To claim this, I am signing this object:
class CaselessDictionary(dict): | |
"""A dictionary with case-insensitive keys. | |
A dictionary that is case-insensitive when searching, but also preserves | |
the keys as inserted. | |
""" | |
def __init__(self, initval={}): | |
if isinstance(initval, dict): | |
for key, value in initval.iteritems(): |
from __future__ import with_statement | |
import sys | |
import os | |
try: | |
myDir = sys.argv[1] | |
except IndexError: | |
myDir = os.getcwd() | |
for root, dirs, files in os.walk(myDir): |
"""Generate Archives Hub URIs for records matching a given subject. | |
Usage: %prog [options] subject | |
""" | |
import sys | |
import os | |
from contextlib import contextmanager |
import tornado.web | |
import tornado.httpserver | |
import tornado.wsgi | |
from cheshire3.web.sruWsgi import application | |
container = tornado.wsgi.WSGIContainer(application) | |
http_server = tornado.httpserver.HTTPServer(container) | |
http_server.listen(8888) | |
tornado.ioloop.IOLoop.instance().start() |
"""Code Breaking. | |
PyPool attempts to solve programming challenge: | |
http://pi3.sites.sheffield.ac.uk/mini-challenges/chal6 | |
""" | |
import string | |
# Encoded sentences |
"""Roman Numeral to Arabic Numbers. | |
Some doctests: | |
>>> convert_to_arabic('Nulla') | |
0 | |
>>> convert_to_arabic('i') | |
1 | |
>>> convert_to_arabic('v') | |
5 |
I hereby claim:
To claim this, I am signing this object: