This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.dropbox.com/s/a5gupd4wb343w57/blast-logo-copy_watermark-block.png?dl=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct({ | |
note: varhash({}, function (val, key) { | |
var output = {} | |
Object.keys(val).forEach(function (k) { | |
output[k] = Observ(val[k]) | |
}) | |
return output | |
}) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var people = varhash({}, function setPerson (obj, key), { | |
return struct({ | |
id: key, | |
name: value(obj.name) | |
}) | |
}) | |
var teams = varhash({}, function setTeam (obj, key) { | |
return struct({ | |
id: key, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var raf = require("raf") | |
var throttle = require("lodash.throttle") | |
var canvas = document.createElement("canvas") | |
var ctx = canvas.getContext('2d') | |
// setup canvas | |
document.body.style.margin = document.body.style.padding = 0 | |
document.body.appendChild(canvas) | |
// only redraw every 200 milliseconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('fs') // at the time of writing, requirebin needs a require. | |
var canvas = document.createElement("canvas") | |
var ctx = canvas.getContext('2d') | |
// setup canvas | |
document.body.style.margin = document.body.style.padding = 0 | |
document.body.appendChild(canvas) | |
requestAnimationFrame(tick) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// client | |
var domready, reconnect, through; | |
through = require('through'); | |
domready = require('domready'); | |
reconnect = require('reconnect/shoe'); | |
domready(function() { | |
var r, result; | |
result = document.getElementById('result'); |