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
| tmpvar@tmpvar:~/work/javascript/objectwrap-test$ cat sanity.js && echo "============" && node sanity.js | |
| var sys = require("sys"), ow = require("./objectwrap"); | |
| function add10(v) { v.set(v.get() + 10); } | |
| var float = new ow.GLfloat(10.00020); | |
| add10(float); | |
| sys.puts(float.get()); | |
| ============ | |
| 20.000200271606445 |
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
| function ScoreNetwork(score) | |
| { | |
| this.ws = null; | |
| this.data = null; | |
| this.score = score; | |
| this.initialize = function() | |
| { | |
| this.ws = new WebSocket('ws://localhost:7000'); |
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
| tmpvar@tmpvar:~/work/javascript/node-ogl$ php util/gen.php | |
| converting opengl headers into nodejs classes | |
| Processing GL... | |
| - strtoimax is not implemented | |
| - strtoumax is not implemented | |
| - wcstoimax is not implemented | |
| - wcstoumax is not implemented | |
| - glGetDebugLogMESA is not implemented | |
| - glProgramCallbackMESA is not implemented | |
| render templates: gl |
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
| import Options, glob | |
| from os.path import join, dirname, abspath, exists | |
| from shutil import copy, rmtree | |
| from os import unlink | |
| import sys, os | |
| srcdir = "." | |
| blddir = "build" | |
| VERSION = "0.0.1" |
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 sys = require("sys"), | |
| dom = require('./lib/jsdom/lib/level1/core').dom.level1.core, | |
| fs = require("fs"), | |
| haml = require('./lib/haml-js/lib/haml') | |
| windower = require("./lib/jsdom/lib/browser"); | |
| exports.toJUP = function(template) { | |
| template = haml.render(template); | |
| var window = windower.windowAugmentation(dom); | |
| var document = window.document; |
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
| (function( window, undefined ) { | |
| var JUP = {}; | |
| // Define a local copy of parseDOM JUP | |
| JUP.parseDOM = function(items, ARR){ | |
| if(typeof ARR == 'undefined'){ | |
| var ARR = []; | |
| } | |
| window.jQuery(items).each(function(i,e){ |
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 text = '<div><div class="container" >asd<div fuck="cakes" class="left column"><div id="date"></div><div id="address"></div></div><div class="right column"><div id="email"></div></div></div></div>'; | |
| var intag = false, tmpbuf = "", endtag = false, abspos = 0; | |
| function parse(html, pos, lvl) { | |
| var level = lvl || 0, current = level, ret = [], i=abspos, origpos = abspos; | |
| for (i; i<html.length; i+=1) { | |
| abspos = i; | |
| var char = html[i]; | |
| if (char === '<') { |
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
| tmpmac:bot tmpvar$ npm install npm | |
| The "ini" module will be removed in future versions of Node, please extract it into your own code. | |
| npm configfile /Users/tmpvar/.npmrc | |
| npm sudo false | |
| npm cli [ 'install', 'npm' ] | |
| npm install pkg npm | |
| npm fetch data npm | |
| npm GET npm | |
| npm install pkg npm | |
| npm install pkg [email protected] |
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
| /******************************* | |
| JSONloops is a javascript audio sequencer that runs on JSON arrays of sounds | |
| JSONloops are nested arrays that contain: a nested array, a sound, or null | |
| the arrays are nested in the following hierarchy | |
| * SONG | |
| * TRACKS | |
| * MEASURES |
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 net = require("net"); | |
| var events = require("events"); | |
| var sys = require("sys"); | |
| var prot = {}; | |
| function Server(){ | |
| events.EventEmitter.call(this); | |
| } | |
| sys.inherits(Server, events.EventEmitter); |