Skip to content

Instantly share code, notes, and snippets.

View stuartathompson's full-sized avatar

Stuart A. Thompson stuartathompson

View GitHub Profile
[
{
"Dates": "3/14/2014",
"price": 39.8
},
{
"Dates": "3/17/2014",
"price": 37.25
},
{
{
"type": "FeatureCollection",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "bin": 4433407.0, "cnstrct_yr": 1939.0, "doitt_id": 1261107.0, "feat_code": 2100.0, "groundelev": 16.0, "heightroof": 59.33, "date_lstmo": "2017\/08\/22", "time_lstmo": "00:00:00.000", "lststatype": "Constructed", "name": null, "shape_area": 3531.7858901224299, "shape_len": 299.25102558088003 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -73.947526315165717, 40.754798438952726 ], [ -73.947528056639328, 40.75476145328328 ], [ -73.947667031355849, 40.754765237393144 ], [ -73.947722878077712, 40.754701440323494 ], [ -73.94781342904632, 40.754747277490445 ], [ -73.947767431819543, 40.754799822751302 ], [ -73.947757582372759, 40.754811074603602 ], [ -73.947821464410907, 40.75490368542831 ], [ -73.947771846632023, 40.754923477665251 ], [ -73.947726981293727, 40.754941373771892 ], [ -73.947663099350834, 40.754848762895243 ], [ -73.947660125
We can't make this file beautiful and searchable because it's too large.
State Year District Dem Votes GOP Votes D Voteshare Incumbent Party
AL 1948 1 19778 0 1 1 D
AL 1948 2 21271 0 1 1 D
AL 1948 3 16279 0 1 1 D
AL 1948 4 17282 3054 0.849822974 1 D
AL 1948 5 20548 0 1 1 D
AL 1948 6 13968 2994 0.823487796 1 D
AL 1948 7 21552 0 1 1 D
AL 1948 8 19060 2510 0.883634678 1 D
AL 1948 9 33781 5006 0.870936138 1 D
[{"district13":"M702.1,363.8L702.1,363.8L702.1,363.8h-0.2h0h0l-0.1,0l-0.4,0l-0.1,0h0l0,0h0l-0.1,0l0,0l0,0l-0.1,0l-0.1,0l-0.1,0l-0.1,0l0,0l-0.1,0l-0.2,0l-0.1,0l0,0l0,0l0,0l0,0l-0.1,0h0l0,0l0,0l-0.1,0l0,0l-0.1,0l-0.3,0l-0.1,0l0,0l-0.1,0l-0.2,0l-0.1,0l0,0l-0.1,0l-0.1,0h0l-0.1,0l-0.2,0l-0.1,0l-0.1,0l0,0l-0.1,0l0,0l0,0l0,0h0l-0.1,0h0l-0.1,0h-0.1l-0.6,0H697l-0.1,0l-0.1,0l-0.1,0l-0.1,0l0,0h-0.1l-0.3,0h0l0,0l-0.1,0h0l-0.1,0h-0.1l-0.1,0h-0.1l0,0l-0.2,0l-0.5,0l-0.2,0l0,0l-0.1,0l-0.2,0h0h0l0,0l-0.1,0l-0.1,0l-0.2,0l-0.1,0l0,0h0l-0.1,0l0,0h-0.1h-0.3h-0.1l0,0h0l0,0h0l0,0l0,0l-0.1,0l-0.1,0l0,0l-0.1,0l-0.3,0l-0.1,0l0,0l-0.1,0h0h0l-0.1,0l-0.2,0h0l0,0l-0.1,0l-0.1,0l-0.1,0l-0.1,0l-0.2,0l-0.6,0l0,0l-0.2,0l-0.1,0l-0.2,0l-0.1,0l-0.1,0l-0.1,0l-0.2,0l-0.1,0l-0.1,0l-0.1,0l-0.2,0h0l-0.3,0l-0.1,0l-0.2,0l0,0l-0.1,0l-0.2,0l0,0l-0.1,0h0l0,0l-0.1,0l0,0l0,0l0,0l0,0l-0.1,0l0,0l0,0l-0.1,0l0,0l-0.4,0l-1.2,0l-0.4,0l0,0l-0.2,0l-0.5,0l-0.1,0l-0.1,0l0,0l0,0l0,0l0,0l0,0l-0.2,0l-0.5,0l-0.2,0h0h0l0,0l0,0l0,0l0,0l0,0l0,0l-0.2,0l-0.8,0l-0.2,0h0l-0.1,0l
This file has been truncated, but you can view the full file.
{
"type": "FeatureCollection",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::4269" } },
"features": [
{ "type": "Feature", "properties": { "STATEFP": "26", "CD115FP": "01", "GEOID": "2601", "NAMELSAD": "Congressional District 1", "LSAD": "C2", "CDSESSN": "115", "MTFCC": "G5200", "FUNCSTAT": "N", "ALAND": 64823240980, "AWATER": 75783708302, "INTPTLAT": "+46.1573045", "INTPTLON": "-086.4369120" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -90.418392, 46.566099 ], [ -90.416438, 46.569069 ], [ -90.415889, 46.569937 ], [ -90.414593, 46.571989 ], [ -90.410348, 46.578711 ], [ -90.410116, 46.579078 ], [ -90.408548, 46.581559 ], [ -90.406102, 46.585433 ], [ -90.401184, 46.593335 ], [ -90.386434, 46.617042 ], [ -90.381518, 46.624945 ], [ -90.359138, 46.659592 ], [ -90.292001, 46.763534 ], [ -90.269622, 46.798182 ], [ -90.250174, 46.828454 ], [ -90.238139, 46.847007 ], [ -90.220022, 46.87494 ], [ -90.143501, 46.99336 ], [ -90.139252, 46.999937 ], [ -90.125164, 47.020679 ], [ -90.111
This file has been truncated, but you can view the full file.
{"type":"FeatureCollection", "features": [
@stuartathompson
stuartathompson / ranker.py
Created April 18, 2012 18:08 — forked from JoeGermuska/ranker.py
Example of how to convert a csv file to a table of ranked headers for each row
#!/usr/bin/env python
import csv
import json
r = csv.reader(open("data.csv"))
headers = r.next()
countries = headers[1:]
def saveData(output):
filename = "ranked"
print "Writing JSON output to %s.json" % filename