This file contains hidden or 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
module.exports = id = new Object | |
class id.Greek | |
_index: 0 | |
next: => id.Greek.map.lower[(Object.keys id.Greek.map.lower)[@_index++]] | |
reset: => _index = 0 | |
greek = new id.Greek | |
id.greek = greek.next |
This file contains hidden or 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
classmethod = (class_, methods) -> | |
for own name, method of methods | |
class_[name] = method | |
class_::[name] = (args...) -> | |
method.apply @constructor, args | |
class Atom |
This file contains hidden or 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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
This file contains hidden or 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
isabel:webclient pyrotechnick$ npm install dnode | |
[email protected] ./node_modules/dnode/node_modules/dnode-protocol | |
[email protected] ./node_modules/dnode/node_modules/lazy | |
[email protected] ./node_modules/dnode/node_modules/traverse | |
[email protected] ./node_modules/dnode/node_modules/socket.io | |
[email protected] ./node_modules/dnode | |
isabel:webclient pyrotechnick$ coffee server.coffee | |
Error: Cannot find module 'dnode' | |
at Function._resolveFilename (module.js:320:11) | |
at Function._load (module.js:266:25) |
This file contains hidden or 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
isabel:webclient pyrotechnick$ npm install dnode | |
[email protected] ../node_modules/dnode/node_modules/dnode-protocol | |
[email protected] ../node_modules/dnode/node_modules/lazy | |
[email protected] ../node_modules/dnode/node_modules/traverse | |
[email protected] ../node_modules/dnode/node_modules/socket.io | |
[email protected] ../node_modules/dnode/node_modules/browserify/node_modules/es5-shim | |
[email protected] ../node_modules/dnode/node_modules/browserify/node_modules/hashish | |
[email protected] ../node_modules/dnode/node_modules/browserify/node_modules/source | |
[email protected] ../node_modules/dnode/node_modules/browserify/node_modules/coffee-script | |
[email protected] ../node_modules/dnode/node_modules/browserify/node_modules/findit/node_modules/seq/node_modules/chainsaw |
This file contains hidden or 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
6: src/Three.js | |
8: src/materials/MeshFaceMaterial.js | |
11: examples/js/Stats.js | |
11: src/renderers/renderables/RenderableObject.js | |
12: src/materials/ParticleDOMMaterial.js | |
12: examples/js/PRNG.js | |
12: src/scenes/FogExp2.js | |
13: examples/js/Tween.js | |
13: src/scenes/Fog.js | |
13: src/lights/AmbientLight.js |
This file contains hidden or 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
THREE.WebGLRenderer = (parameters) -> | |
_canvas = document.createElement 'canvas' | |
_gl = null | |
_oldProgram = null | |
_oldFramebuffer = null | |
_this = this | |
# gl state cache | |
_oldDoubleSided = null |
This file contains hidden or 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
THREE.WebGLRenderer = (parameters) -> | |
_canvas = document.createElement 'canvas' | |
_gl = null | |
_oldProgram = null | |
_oldFramebuffer = null | |
_this = this | |
# gl state cache | |
_oldDoubleSided = null |
This file contains hidden or 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
node.connect (remote) -> | |
client.__remote__ = remote | |
Backbone.sync = (args...) -> | |
[method, model, options] = args | |
packet = | |
method: method | |
callback: (response) -> | |
options.success response |
This file contains hidden or 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 frames = 0, last = 0; | |
setInterval(function () { | |
if (last) { | |
var fps = frames / (Date.now() - last) * 1000; | |
console.log('fps: ' + fps); | |
} | |
last = Date.now(); | |
frames = 0; | |
}, 1000); |