These are the Kickstarter Engineering and Data role definitions for both teams.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
I hereby claim:
- I am ohe on github.
- I am ohe (https://keybase.io/ohe) on keybase.
- I have a public key ASCKxCHoeHZoEgC5BtAeOLZXTc0DdbhsfrJ1BSPS9SfrEAo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import yaml | |
def merge(x, y): | |
if isinstance(x, dict) and isinstance(y, dict): | |
for k,v in y.iteritems(): | |
if k not in x: | |
x[k] = v | |
else: | |
x[k] = merge(x[k], v) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def redefine_instance_fn(obj, ext_fn, remote_name=None): | |
""" | |
Given an object and a function, install the function as an instance method. | |
Overrides any existing instance method with the same name. | |
Preserves object identity. | |
Uses name of function by default. | |
Note: not a best practice, but sometimes necessary. | |
>>> class A: | |
... def __init__(self, val): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from threading import Thread | |
import time | |
a = [3, 1, 4] | |
def sleepsort(array): | |
results = [] | |
threads = [] | |
def runner(x): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:xenial | |
RUN apt-get update && apt-get install -y \ | |
automake \ | |
bison \ | |
cmake \ | |
curl \ | |
flex \ | |
g++ \ | |
git \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from test import zero | |
from functools import wraps | |
from multiprocessing import Process, Queue | |
def queue_result(function, queue): | |
@wraps(function) | |
def decorated_function(*args, **kwargs): | |
has_raised = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from contextlib import contextmanager | |
from functools import partial | |
from requests import request | |
from slugify import slugify | |
BASE="http://haltalk.herokuapp.com" | |
@contextmanager |
NewerOlder