Skip to content

Instantly share code, notes, and snippets.

View Zeitsperre's full-sized avatar
🗺️
Keeping on keepin' on.

Trevor James Smith Zeitsperre

🗺️
Keeping on keepin' on.
View GitHub Profile
@patmisch
patmisch / shape_importer.py
Created May 10, 2012 02:29
Shapefile Importer
#!/user/bin/python2.7
#script for importing US Census Tract File
#works specifically for subfolder 'shapefiles' with x number of subfolders for each state
#requires pyshp library http://code.google.com/p/pyshp/ and psycopg2 postgresql library
import psycopg2
import shapefile
import glob
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream