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:
I hereby claim:
To claim this, I am signing this object:
"""Roman Numeral to Arabic Numbers. | |
Some doctests: | |
>>> convert_to_arabic('Nulla') | |
0 | |
>>> convert_to_arabic('i') | |
1 | |
>>> convert_to_arabic('v') | |
5 |
"""Code Breaking. | |
PyPool attempts to solve programming challenge: | |
http://pi3.sites.sheffield.ac.uk/mini-challenges/chal6 | |
""" | |
import string | |
# Encoded sentences |
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() |
"""Generate Archives Hub URIs for records matching a given subject. | |
Usage: %prog [options] subject | |
""" | |
import sys | |
import os | |
from contextlib import contextmanager |
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): |
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(): |