Skip to content

Instantly share code, notes, and snippets.

View abock's full-sized avatar

Aaron Bockover abock

View GitHub Profile
@abock
abock / -
Created January 15, 2014 18:48
Wed Jan 15 13:48:32 EST 2014
@abock
abock / -
Created January 15, 2014 18:48
Wed Jan 15 13:48:21 EST 2014
@abock
abock / -
Created January 15, 2014 18:47
test
@abock
abock / -
Created January 15, 2014 18:47
test
@abock
abock / -
Created January 15, 2014 18:45
test
@abock
abock / amendmentone.py
Created May 9, 2012 17:34
NC Amendment One Outcome Visualization
#!/usr/bin/env python3
# Written by Aaron Bockover <aaron@abock.org>
# Released into the Public Domain
import json
import urllib.request
uri = 'http://results.enr.clarityelections.com/NC/36596/80750/json/details.json'
response = urllib.request.urlopen(uri)
data = json.loads(response.read().decode('utf8'))