Skip to content

Instantly share code, notes, and snippets.

View tthibo's full-sized avatar

Troy Thibodeaux tthibo

  • The Associated Press
  • New Orleans, LA
View GitHub Profile
@tthibo
tthibo / keybase.md
Created May 26, 2015 19:47
Keybase proof

Keybase proof

I hereby claim:

  • I am tthibo on github.
  • I am tthibo (https://keybase.io/tthibo) on keybase.
  • I have a public key whose fingerprint is 1E66 43A0 C8C7 CC81 70AB 92A1 F119 137F CBD1 55A3

To claim this, I am signing this object:

@tthibo
tthibo / Census Geo Header Parser
Created January 29, 2011 21:47
The beginning of a script to parse the geo header files for Census redistricting data.
#!/usr/bin/env python
"""
This script parses a Census geo header file and converts it to a csv.
It's just a bare start. Hopefully it's the germ of something.
Eventually, it could be used to populate database tables instead.
Currently the sample AL files and the geo header are both from Census 2000:
http://www2.census.gov/census_2000/datasets/redistricting_file--pl_94-171/
The geo header fields for Census 2010 are slightly different, but the same approach will work for them if we update the data dictionary.