I hereby claim:
- I am ryanwitt on github.
- I am onecreativenerd (https://keybase.io/onecreativenerd) on keybase.
- I have a public key ASB_TkeaXoaqMw5ii1FGzwCwYblooenmt-s59k24W87OZAo
To claim this, I am signing this object:
def collect_ranges(s): | |
""" | |
Returns a generator of tuples of consecutive numbers found in the input. | |
>>> list(collect_ranges([])) | |
[] | |
>>> list(collect_ranges([1])) | |
[(1, 1)] | |
>>> list(collect_ranges([1,2,3])) | |
[(1, 3)] |
#!/bin/sh | |
VERSION=0.12.2 | |
PLATFORM=linux | |
ARCH=x64 | |
PREFIX=/usr/local | |
mkdir -p "$PREFIX" && \ | |
curl http://nodejs.org/dist/v$VERSION/node-v$VERSION-$PLATFORM-$ARCH.tar.gz \ | |
| tar xzvf - --strip-components=1 -C "$PREFIX" |
class RedisTools: | |
''' | |
A set of utility tools for interacting with a redis cache | |
''' | |
def __init__(self): | |
self._queues = ["default", "high", "low", "failed"] | |
self.get_redis_connection() | |
def get_redis_connection(self): |
I hereby claim:
To claim this, I am signing this object: