I hereby claim:
- I am jbweston on github.
- I am jbweston (https://keybase.io/jbweston) on keybase.
- I have a public key whose fingerprint is E836 17D2 3FAF 6B96 DCA3 81B4 0982 D739 D2C4 E1B6
To claim this, I am signing this object:
| import random | |
| from itertools import accumulate | |
| # random number generator that will not generate the same sequence | |
| # of pseudorandom numbers if the `random` module is used elsewhere. | |
| # the advantage is a 60x speedup | |
| class Rng: | |
| def __init__(self, outputs, probabilities, seed=0): | |
| # test inputs for consistency | |
| if len(outputs) != len(probabilities): |
| import csv | |
| import subprocess | |
| from tornado import gen, AsyncHTTPClient | |
| @gen.coroutine | |
| def get_whitelist(sheets_url, usernames_field): | |
| # Get CSV from sheet | |
| client = AsyncHTTPClient() |
| import abc | |
| class Interface(abc.ABC): | |
| __slots__ = () | |
| @classmethod | |
| def __subclasshook__(cls, obj): | |
| if cls is not Interface: | |
| return NotImplemented |
| #!/bin/bash | |
| export LD_LIBRARY_PATH=$(pwd)/.libs | |
| make -j8 2>/dev/null >/dev/null | |
| if [ $? != 0 ]; then | |
| exit 125 | |
| fi | |
| python 2>/dev/null << EOF |
I hereby claim:
To claim this, I am signing this object:
| @@ -10,6 +10,11 @@ from setuptools.command.sdist import sdist as sdist_orig | |
| Version = namedtuple("Version", ("release", "dev", "labels")) | |
| + | |
| +class UnknownVersion(RuntimeError): | |
| + pass | |
| + | |
| + | |
| # No public API |