Skip to content

Instantly share code, notes, and snippets.

View abock's full-sized avatar

Aaron Bockover abock

View GitHub Profile
@abock
abock / amendmentone.py
Created May 9, 2012 17:34
NC Amendment One Outcome Visualization
#!/usr/bin/env python3
# Written by Aaron Bockover <[email protected]>
# 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'))
@abock
abock / -
Created January 15, 2014 18:45
test
@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:48
Wed Jan 15 13:48:21 EST 2014
@abock
abock / -
Created January 15, 2014 18:48
Wed Jan 15 13:48:32 EST 2014
PUBLIC
PUBLIC2
// Mountain Lion (10.8) - this is 'int' (32 bits always)
typedef enum {
SCNGeometryPrimitiveTypeTriangles = 0,
SCNGeometryPrimitiveTypeTriangleStrip = 1,
SCNGeometryPrimitiveTypeLine = 2,
SCNGeometryPrimitiveTypePoint = 3
} SCNGeometryPrimitiveType;
// Mavericks (10.9) - this is 'long' (32 or 64 bits depending on architecture)
typedef NS_ENUM(NSInteger, SCNGeometryPrimitiveType) {
#!/usr/bin/env bash
nogitdir="/tmp/nogitsubmodulesfrommake"
mkdir -p "$nogitdir"
git="$(which git)"
{ cat <<EOF
#!/usr/bin/env bash
if [ "\$1" = "submodule" ]; then
echo "*** INSANITY: someone is messing with git submodules in a Makefile"
echo "*** not running this command:"