Skip to content

Instantly share code, notes, and snippets.

View gleitz's full-sized avatar

Benjamin Gleitzman gleitz

View GitHub Profile
@gleitz
gleitz / index.js
Created May 20, 2014 02:17
requirebin sketch
/*jshint multistr: true */
var d3 = require('d3');
var insertCSS = require('insert-css')
var css = ".link {\
fill: none;\
stroke: #666;\
stroke-width: 1.5px;\
}\
The Creator's List
100 questions to guide any creative project
by George Zisiadis
1. What are you doing?
2. Why are you doing this?
3. What are you trying to communicate to people?
4. What inspired this idea originally?
5. How long have you been thinking about this?
6. What else has been done that's similar to your project?
@gleitz
gleitz / turtle_geometry.asm
Created October 29, 2014 19:19
Hal Abelson, "Turtle Geometry" (1979)
; Logo Language Interpreter for the Apple-II-Plus Personal Microcomputer
; Written and developed by Stephen L. Hain, Patrick G. Sobalvarro, and
; Leigh L. Klotz with the M.I.T. Logo Group under the supervision of Hal
; Abelson at the Massachusetts Institute of Technology.
; Property of the M.I.T. Logo Laboratory,
; 545 Technology Square, Cambridge, MA 02139.
; Copyright (C) 1980 Massachusetts Institute of Technology
; All rights reserved.
export PATH=/usr/local/bin:$PATH:/opt/local/bin:/usr/local/sbin:/Users/bgleitzman/android-sdk/tools:/Users/bgleitzman/android-sdk/platform-tools:/usr/local/share/npm/bin
export MANPATH=$MANPATH:/opt/local/share/man
export INFOPATH=$INFOPATH:/opt/local/share/info
export JAVA_OPTS="-Xmx1024m -XX:MaxPermSize=512m"
export MAVEN_OPTS="-Xmx3072m -XX:MaxPermSize=256m"
export NODE_PATH="/usr/local/lib/node_modules"
export WORKON_HOME="~/.virtualenvs"
export EDITOR="/usr/local/bin/edit"
export GIT_EDITOR="emacsclient -t"
#export MACOSX_DEPLOYMENT_TARGET=10.8
# e.g. python code_reader.py ~/Dropbox/Shared/Ruse/algorithm\ auction/algorithms/basic\ code/
import json
import os
import sys
def calculate_info(path):
num_lines = 0
line_length_counts = []
{
// Gleitz's JSHint Configuration File
// See http://jshint.com/docs/ for more details
"maxerr": 50, // {int} Maximum error before stopping
// Enforcing
"bitwise": true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase": false, // true: Identifiers must be in camelCase
"curly": true, // true: Require {} for every new block or scope
{
// Gleitz's JSHint Configuration File
// See http://jshint.com/docs/ for more details
"maxerr": 50, // {int} Maximum error before stopping
// Enforcing
"bitwise": true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase": false, // true: Identifiers must be in camelCase
"curly": true, // true: Require {} for every new block or scope
{
// Gleitz's JSHint Configuration File
// See http://jshint.com/docs/ for more details
"maxerr": 50, // {int} Maximum error before stopping
// Enforcing
"bitwise": true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase": false, // true: Identifiers must be in camelCase
"curly": true, // true: Require {} for every new block or scope
{
// Gleitz's JSHint Configuration File
// See http://jshint.com/docs/ for more details
"maxerr": 50, // {int} Maximum error before stopping
// Enforcing
"bitwise": true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase": false, // true: Identifiers must be in camelCase
"curly": true, // true: Require {} for every new block or scope
using UnityEngine;
using System.Collections;
using Meteor;
using Extensions;
public class MeteorUpdate : MonoBehaviour {
public string meteorURL = "wss://calder.meteor.com/websocket";
void Start () {
Debug.Log ("starting!");