Skip to content

Instantly share code, notes, and snippets.

Chad Whitacre chadwhitacre

Block or report user

Report or block chadwhitacre

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@chadwhitacre
chadwhitacre / connect4.py
Created Mar 19, 2012
My submission for the Thumbtack PyCon schwag
View connect4.py
#!/usr/bin/env python
import json
import sys
# Set up directions.
# ==================
# a b c
# d e
# f g h
@chadwhitacre
chadwhitacre / repair.py
Created Jul 27, 2012
This is the script I used to repair Gittip.com issue #202
View repair.py
#!/usr/bin/env python
from gittip import wireup
db = wireup.db()
names = open('affected.txt').read().splitlines()
for name in names:
@chadwhitacre
chadwhitacre / repair.py
Created Jul 27, 2012
This is the script I used to repair Gittip.com issue #202 for $0.50 people
View repair.py
#!/usr/bin/env python
import datetime
from gittip import wireup
db = wireup.db()
names = open('affected-less.txt')
@chadwhitacre
chadwhitacre / migrate.py
Created Aug 16, 2012
Script used to wire up balanced_card_uri migrated from Stripe
View migrate.py
#!./env/bin/python
import csv
import sys
from gittip import billing, wireup
db = wireup.db()
wireup.billing()
View gist:3444317
"""Used when a person needed to go to Balanced to verify their merchant details
they are redirected here after the fact.
"""
from aspen import Response
from gittip import billing
#=========================================================================== ^L
if user.ANON:
raise Response(404)
View gist:3444334
"""Used when a person needed to go to Balanced to verify their merchant details
they are redirected here after the fact.
"""
from aspen import Response
from gittip import billing
#=========================================================================== ^L
if user.ANON:
raise Response(404)
View gist:3586790
from datadirect.dataset.aggregation_mixin import AggregationMixin
def test_aggregation_mixin_is_instantiable():
actual = AggregationMixin().__class__
assert actual is AggregationMixin, actual
@chadwhitacre
chadwhitacre / gist:3593759
Created Sep 2, 2012
On Jamming One's Personal Brand
View gist:3593759

I studied Greek in college, which meant I was temping soon after. My best gig was in an internal medicine office, where I sat in a closet calling insurance companies all day, and the ladies teased me for being a virgin, and also thought I was quaintly cute. Two of them attended my wedding.

In the closet, while calling the insurance companies, I stared at an old DOS medical records system. Each screen was a different human, a person, reduced to an ASCII medical records profile along familiar axes: name, age, gender, race, and then medical history. By the end of my stint I had an image of a reconstituted person, a human, appear (to my conscious mind) instantly upon switching screens. This was late 1999, the age of The Matrix, and I identified with Mouse, the geeky young character who scans the falling green characters and cognizes the world itself. Martha Schwartz, old lady, 309 lbs., sitting on her couch with a walker in front of her, tube

You can’t perform that action at this time.