Skip to content

Instantly share code, notes, and snippets.

Elijah Insua tmpvar

Block or report user

Report or block tmpvar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View reblaze.js
function reblaze(vals, fn) {
if (typeof fn !== 'function')
throw new TypeError('fn should be a function');
// V8 will automatically throw if vals is not an object.
var keys = Object.keys(vals);
var regexp;
var fn_name = fn.name;
View cherry-keyboard-key-holder.js
var buttons = [];
var rows = 1;
var columns = 1;
var distanceBetween = 20;
var borderH = 1;
var borderW = 2;
var w = rows*distanceBetween + borderW
var h = columns*distanceBetween + borderH
@cheery
cheery / demo.js
Created Oct 28, 2012
Bug with Raspberry pi, EGL and node.js.
View demo.js
console.log("loading bagu");
var bagu = require("./build/Release/bagu");
console.log("bagu loaded");
console.log(bagu);
@tmpvar
tmpvar / TLC5971 breakout.jpg
Created Oct 11, 2012
arduino uno control of of a TLC5971 rgb led driver
@chandlerprall
chandlerprall / ThreeBSP.js
Created Dec 16, 2011
Port of Evan Wallace's csg.js to Three.js
View ThreeBSP.js
THREE.Vector3.prototype.lerp = function ( a, t ) {
return this.clone().addSelf( a.clone().subSelf( this ).multiplyScalar( t ) );
};
THREE.Vertex.prototype.interpolate = function( other, t ) {
var v = new THREE.Vertex( this.position.lerp( other.position, t ) );
v.normal = this.normal.clone();
return v;
};
You can’t perform that action at this time.