Skip to content

Instantly share code, notes, and snippets.

View abock's full-sized avatar

Aaron Bockover abock

View GitHub Profile
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:"
#!/usr/bin/env bash
#
# alias make=path/to/this/script
#
# if you don't want Makefiles to touch your
# git submodules. Insane.
#
nogitdir="/tmp/nogitsubmodulesfrommake"
mkdir -p "$nogitdir"
#!/usr/bin/env bash
#
# alias make=path/to/this/script
#
# if you don't want Makefiles to touch your
# git submodules. Insane.
#
nogitdir="/tmp/nogitsubmodulesfrommake"
mkdir -p "$nogitdir"
@abock
abock / -
Created April 22, 2015 18:04
2015-04-22 14:04:35.746 PatriotChatiOS[8194:3783547] Unhandled managed exception:
Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The system cannot find the file specified. (System.IO.FileNotFoundException)
at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef, System.Security.Policy.Evidence assemblySecurity) [0x00081] in /Users/builder/data/lanes/1503/c2c00129/source/mono/mcs/class/corlib/System/AppDomain.cs:706
at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in /Users/builder/data/lanes/1503/c2c00129/source/mono/mcs/class/corlib/System/AppDomain.cs:674
at System.Reflection.Assembly.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in /Users/builder/data/lanes/1503/c2c00129/source/mono/mcs/class/corlib/System.Reflection/Assembly.cs:551
at ObjCRuntime.Runtime.CollectReferencedAssemblies (System.Collections.Generic.List`1 assemblies, System.Reflection.Assembly assembly) [0x00019] in /Users/builder/data/lanes/1503
@abock
abock / -
Created September 25, 2015 16:12
aaron@porkbelly monodevelop/main 👉 DYLD_LIBRARY_PATH=POTATO PATH=/Library/Frameworks/Mono.framework/Versions/Current/bin:/usr/bin:/bin:/usr/sbin:/sbin ./autogen.sh (git)-[cycle6]-
>>>>> main/autogen.sh: SOME_ARBITRARY_VAR=
>>>>> main/autogen.sh: PATH=/Library/Frameworks/Mono.framework/Versions/Current/bin:/usr/bin:/bin:/usr/sbin:/sbin
>>>>> main/autogen.sh: DYLD_LIBRARY_PATH=
@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'))
@abock
abock / -
Created January 15, 2014 18:45
test