Skip to content

Instantly share code, notes, and snippets.

View rklancer's full-sized avatar

Richard Klancer rklancer

View GitHub Profile
(function(){
var DEBUG = false;
var doPost = false;
try {
doPost = !!window.top.postMessage;
} catch(e){}
@rklancer
rklancer / index.html
Last active December 20, 2015 20:08 — forked from tmcw/index.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>SVG Swarm</title>
<style>
svg {
position: absolute;
top: 0;
}
@rklancer
rklancer / gist:6096148
Created July 27, 2013 20:16
Rasbpi setup for internet over direct ethernet connection to a Mac running Mountain Lion
Lives at https://www.dropbox.com/s/nrnwn27vqal93mg/rasbpi-setup.txt
d/l latest raspbian from http://www.raspberrypi.org/downloads
connect sd card reader, then at the command line:
$ diskutil list
# identify the disk (not partition) of your SD card. e.g. disk2 (not disk2s1)
$ diskutil unmountDisk /dev/<disk# from diskutil>
$ sudo dd bs=1m if=<your image file>.img of=/dev/rdisk<disk # from diskutil>
@rklancer
rklancer / gist:4549097
Last active December 11, 2015 04:58
inquiry-space deploy:clean_and_update_all to lab2
lab (inquiry-space)$ cap lab2-dev deploy:clean_and_update_all
triggering load callbacks
* executing `lab2-dev'
triggering start callbacks for `deploy:clean_and_update_all'
* executing `multistage:ensure'
* executing `deploy:clean_and_update_all'
* executing `deploy:clean_and_update'
* executing "cd /var/www/app; git checkout inquiry-space; git pull origin inquiry-space"
servers: ["lab2.dev.concord.org"]
[lab2.dev.concord.org] executing command
@rklancer
rklancer / labjsfiles.txt
Created October 4, 2012 15:28
Lab js files (excluding energy2d files)
Files we definitely need:
---
src/lab/start.js
src/lab/end.js
src/lab/lab-module.js
src/lab/benchmark/benchmark.js
src/lab/components/button.coffee
/Users/rklancer/dev/lab/src/lab/views/molecule-container.js: line 665, col 13, Missing semicolon.
/Users/rklancer/dev/lab/src/lab/views/molecule-container.js: line 835, col 25, Expected '===' and instead saw '=='.
/Users/rklancer/dev/lab/src/lab/views/molecule-container.js: line 855, col 10, Don't make functions within a loop.
/Users/rklancer/dev/lab/src/lab/views/molecule-container.js: line 1079, col 21, Expected '===' and instead saw '=='.
/Users/rklancer/dev/lab/src/lab/views/molecule-container.js: line 1081, col 142, Don't make functions within a loop.
/Users/rklancer/dev/lab/src/lab/views/molecule-container.js: line 1082, col 143, Don't make functions within a loop.
/Users/rklancer/dev/lab/src/lab/views/molecule-container.js: line 1085, col 144, Don't make functions within a loop.
/Users/rklancer/dev/lab/src/lab/views/molecule-container.js: line 1086, col 145, Don't make functions within a loop.
/Users/rklancer/dev/lab/src/lab/views/molecule-container.js: line 7, col 36, 'layout' is not defined.
/Users/r
@rklancer
rklancer / gist:3667205
Created September 7, 2012 15:34
Build failure
bash -O extglob -c 'rm -rf server/public/!(.git|jnlp)'
rm -rf lab
rm -rf node_modules
git submodule update --init --recursive
Submodule 'config/littlechef' () registered for path 'config/littlechef'
Submodule 'src/vendor/almond' () registered for path 'src/vendor/almond'
Submodule 'src/vendor/codemirror' () registered for path 'src/vendor/codemirror'
Submodule 'src/vendor/d3' () registered for path 'src/vendor/d3'
Submodule 'src/vendor/d3-plugins' () registered for path 'src/vendor/d3-plugins'
Submodule 'src/vendor/domReady' () registered for path 'src/vendor/domReady'
@rklancer
rklancer / gist:2636467
Created May 8, 2012 15:42
Create under model-configs database
{
"_id": "_design/app",
"updates": {
"bump": "function(doc, req) { doc.value = doc.value + 1; return [doc, ''+doc.value]; }"
}
}
{
"_id": "counter",
"value": 0
@rklancer
rklancer / gist:2431832
Created April 20, 2012 20:55
Ember sanity check
# in my otherwise-working app:
GG.tasksController = Ember.ArrayController.create
content : []
currentTask: null
GG.Drake = Ember.Object.extend
# (...)