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
| // my class | |
| function Parser() { | |
| // I'd like this to remain a private variable | |
| this.data = { | |
| number:0 | |
| }; | |
| } | |
| // my class function | |
| Parser.prototype.test = function() { |
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 unWind = function (buff) { | |
| for (var prop in buff) { | |
| if(typeof prop == 'object') { | |
| unWind(buff); | |
| } | |
| else { | |
| return JSON.stringify(buff); | |
| } | |
| } | |
| }; |
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 dependencies | |
| var express = require( 'express' ) | |
| var app = module.exports = express.createServer() | |
| var io = require( 'socket.io' ).listen(app) | |
| var fs = require( 'fs' ) | |
| var net = require( 'net' ) | |
| var cdr = require( './cdr' ) | |
| var filename = './test/test.csv'; |
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
| app.post('/getRhymes', function(req, res) { | |
| var word = req.body.word; | |
| var rhymes = []; | |
| var i = query.length; | |
| var decrement = function(){ if(i <= 0) myevent.emit('finished'); i--}); | |
| db.query('SELECT * from dict WHERE word=\'' + word + '\'', function(err, rows, fields) { | |
| if (err) throw err; | |
| for(var r = 0; r < i; r++) { |
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 plumbdb = require('plumbdb') | |
| var shp2json = require('shp2json') | |
| var tako = require('tako') | |
| var geohash = require('geohash').GeoHash | |
| var JSONStream = require('JSONStream') | |
| var async = require('async') | |
| var gju = require('geostuff') | |
| var t = tako() |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| div { | |
| background-color:#bca; | |
| width:100px; | |
| border:1px solid green; | |
| } | |
| </style> |
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
| gmake[1]: Leaving directory `/root/node-v0.6.10/out/Release/deps/uv' | |
| [ 5/35] libv8.a: deps/v8/SConstruct -> out/Release/libv8.a | |
| /usr/local/bin/python "/root/node-v0.6.10/tools/scons/scons.py" -j 1 -C "/root/node-v0.6.10/out/Release/" -Y "/root/node-v0.6.10/deps/v8" visibility=default mode=release arch=x64 toolchain=gcc library=static snapshot=on | |
| scons: Reading SConscript files ... | |
| scons: warning: Ignoring missing SConscript 'obj/test/release/SConscript' | |
| File "/root/node-v0.6.10/deps/v8/SConstruct", line 1475, in BuildSpecific | |
| scons: done reading SConscript files. | |
| scons: Building targets ... | |
| /usr/bin/g++ -o obj/release/accessors.o -c -fno-rtti -fno-exceptions -Wall -W -Wno-unused-parameter -Wnon-virtual-dtor -m64 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -DV8_TARGET_ARCH_X64 -DENABLE_DEBUGGER_SUPPORT -I/usr/local/include -I/root/node-v0.6.10/deps/v8/src /root/node-v0.6.10/deps/v8/src/accessors.cc |
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
| console.log ( "Hello, Gist!" ) |