This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Wed Jan 15 13:48:21 EST 2014 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Wed Jan 15 13:48:32 EST 2014 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUBLIC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUBLIC2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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:" |
OlderNewer