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
View pkid_init.py
"""Here's how you implement Foo(pkid) with postgres.orm 2.1.x.
Discovered at PyTennesse with @wlphoenix @PederSchacht et al.
"""
class Foo(Model):
typname = 'foo'
def __new__(cls, pkid_or_record):
View keybase.md

Keybase proof

I hereby claim:

  • I am whit537 on github.
  • I am whit537 (https://keybase.io/whit537) on keybase.
  • I have a public key whose fingerprint is C328 C24F 685E 8D29 13C1 0A4C 6EE1 8A8D C479 77C2

To claim this, I am signing this object:

@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)
You can’t perform that action at this time.