Skip to content

Instantly share code, notes, and snippets.

View guybrush's full-sized avatar

Patrick guybrush

View GitHub Profile
ok test/tap/404-parent.js ............................... 4/4
ok test/tap/circular-dep.js ............................. 2/2
ok test/tap/config-meta.js .......................... 767/767
ok test/tap/dedupe.js ................................... 3/3
ok test/tap/false_name.js ............................... 2/2
ok test/tap/git-cache-locking.js ........................ 2/2
not ok test/tap/ignore-install-link.js .................. 1/2
Command: "/usr/local/bin/node ignore-install-link.js"
TAP version 13
not ok 1 Failed to link /home/patrick/tmp/npm-link-issue globally
{
"name": "issue-browserify-glsl-parser",
"version": "0.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "browserify test.js > bundle.js"
},
"author": "",
"license": "ISC",
@guybrush
guybrush / index.js
Created February 18, 2014 02:57
requirebin sketch
var ndarray = require('ndarray')
var cwise = require('cwise')
var s = 4
var arr0 = new ndarray(new Uint8Array(s*s*s),[s,s,s])
var arr1 = new ndarray(new Uint8Array(s*s*s/2*2*2),[s/2,s/2,s/2])
arr0.set(1,1,1,1)
var lod = cwise
@guybrush
guybrush / physics.md
Last active December 27, 2015 12:58
this only some doodling

collision-detection

approaches

1) single axis sweep and prune

1.a) 1 array containing both, static and dynamic bodies

1.a.1) sort everything everytime

i want to do var hello = require('git://gist.github.com/6871950.git')() in requirebin

@guybrush
guybrush / index.js
Last active December 20, 2015 14:19 — forked from shama/index.js
var Context = typeof webkitAudioContext == 'undefined'
? AudioContext
: webkitAudioContext
var master = new Context
var jsynth = require('jsynth')
var tune = require('tune')
var ff = [];
[
'C D E G',
@guybrush
guybrush / shortfilms.md
Last active June 11, 2017 17:15
short films
var EE2 = require('eventemitter2').EventEmitter2
, _ = require('lodash')
exports = module.exports = input
exports.keyTable = keyTable
function input(opts) {
if (!(this instanceof input)) return new input(opts)
EE2.call(this,{wildcard:true,delimiter:'::',maxListeners: 20})
var self = this
$ jitsu databases create mongo escape01
info: Welcome to Nodejitsu nko3-brainpain
info: jitsu v0.10.5, node v0.8.14
info: It worked if it ends with Nodejitsu ok
info: Executing command databases create mongo escape01
info: A new mongo has been created
data: Database Type: mongo
data: Database Name: escape01
/usr/local/lib/node_modules/jitsu/lib/jitsu/commands/databases.js:314
@guybrush
guybrush / gist:4019234
Created November 5, 2012 17:57
git and colors
################################################################################
# colors
################################################################################
C_0="\e[0;0m" # no-color
C_R="\e[31;40m" # red
C_Y="\e[33;40m" # yellow
C_G="\e[1;30m" # gray
C_C="\e[0;36m" # cyan
C_LG="\e[0;37m" # light-gray
C_LC="\e[1;36m" # light-cyan