I hereby claim:
- I am bsmithgall on github.
- I am bsmithgall (https://keybase.io/bsmithgall) on keybase.
- I have a public key whose fingerprint is 94C0 A744 D5FF 2BCF BF5D 982F 8A33 E82F AF50 CA96
To claim this, I am signing this object:
FROM python:2.7 | |
COPY . /app/ | |
WORKDIR /app | |
RUN pip install -r requirements.txt |
UM List | |
ACRE | |
ACRE FEET OF WATER | |
ASSEMBLY | |
BAGS | |
BALE | |
BALL | |
BAR | |
BARREL | |
BASKET |
# modified from https://gist.github.com/bsmithgall/372de43205804a2279c9 | |
SMALL_WORDS = re.compile(r'^(a|an|and|as|at|but|by|en|etc|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$', re.I) | |
SPACE_SPLIT = re.compile(r'[\t ]') | |
# taken from http://stackoverflow.com/a/267405 | |
CAP_WORDS = re.compile(r'^M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$') | |
PUNC_REGEX = re.compile(r'[{}]'.format(re.escape(string.punctuation))) | |
# taken from python-titlecase: https://github.com/ppannuto/python-titlecase/blob/master/titlecase/__init__.py#L27 | |
UC_INITIALS = re.compile(r'^(?:[A-Z]{1}\.{1}|[A-Z]{1}\.{1}[A-Z]{1})+$', re.I) | |
def better_title(string): |
# -*- coding: utf-8 -*- | |
import json | |
import csv | |
import urllib2 | |
def load_from_url(url): | |
raw_data = urllib2.urlopen(url).read().decode('utf-8').rstrip() | |
# standardize file endings |
I hereby claim:
To claim this, I am signing this object: