Skip to content

Instantly share code, notes, and snippets.

0.000000, 0.000000, 0.000000, 143.178210, 143.178210
0.000000, 0.005000, 0.007071, 143.178210, 143.184160
0.000000, 0.010000, 0.014142, 143.178210, 143.190080
0.000000, 0.015000, 0.021213, 143.178210, 143.196010
nan, 0.020000, 0.028284, 143.178210, 143.201970
nan, 0.025000, 0.035355, 143.178210, 143.207890
nan, 0.030000, 0.042426, 143.178210, 143.213840
0.000488, 0.035000, 0.049497, 143.178210, 143.219770
0.000488, 0.040000, 0.056569, 143.178210, 143.225710
0.000000, 0.045000, 0.063640, 143.178210, 143.231640
@tmpvar
tmpvar / leapmotion-servofinger.js
Last active December 31, 2015 22:09
leap motion to servofinger experiment
var five = require("johnny-five");
var ws = new (require('ws'))('ws://localhost:6437');
ws.on('open', console.log.bind(console, 'connected'));
ws.on('error', console.log.bind(console, 'ERROR:'));
(new five.Board()).on("ready", function() {
var servo = new five.Servo(11);
ws.on('message', function(data) {
@tmpvar
tmpvar / mouse-stream-test.js
Created December 18, 2013 20:21
testing out an approach to apply modes to a mousemove stream
var canvas = document.getElementById('canvas');
var ctx = canvas.getContext('2d');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
ctx.fillStyle = "black";
ctx.fillRect(0, 0, canvas.width, canvas.height);
function source(fn) {
canvas.addEventListener('mousemove', fn);
@tmpvar
tmpvar / value.js
Created December 16, 2013 18:10
experiments with value relationships
function ValueReference(src, dest, forward) {
if (!forward) {
this.src = src;
this.dest = dest;
} else {
this.src = dest;
this.dest = src;
}
this.operations = [];
" Vim color file - tmpvar
" Generated by http://bytefluent.com/vivify 2013-09-18
set background=dark
if version > 580
hi clear
if exists("syntax_on")
syntax reset
endif
endif
" Vim color file - tmpvar
" Generated by http://bytefluent.com/vivify 2013-09-18
set background=dark
if version > 580
hi clear
if exists("syntax_on")
syntax reset
endif
endif
" Vim color file - tmpvar
" Generated by http://bytefluent.com/vivify 2013-09-18
set background=dark
if version > 580
hi clear
if exists("syntax_on")
syntax reset
endif
endif
#!/usr/bin/env node
if (process.argv.length < 4) {
return console.log('usage: togif 25 path/to/files/*.jpg path/to/output.gif');
}
// node expands *.jpg
var images = process.argv.slice(2);
var delay = images.shift();
#!/usr/bin/env node
if (process.argv.length < 4) {
return console.log('usage: togif 25 path/to/files/*.jpg path/to/output.gif');
}
// node expands *.jpg
var images = process.argv.slice(2);
var delay = images.shift();
#!/usr/bin/env node
if (process.argv.length < 4) {
return console.log('usage: togif 25 path/to/files/*.jpg path/to/output.gif');
}
// node expands *.jpg
var images = process.argv.slice(2);
var delay = images.shift();