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
if ($2.indexOf(':') !== -1) { | |
gpuid = split($2, ':'); | |
fs.getpwuid($2[0], function (err, resp) { | |
// handle err | |
fs.getgrgid($2[1], function (err, resp) { | |
// checking and stuff | |
}); | |
}) | |
} else { | |
fs.getpwuid($2, function (err, resp) { |
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.paths.unshift('lib'); | |
require('express'); | |
flow = require('flow-js/flow'); | |
require('express/plugins'); | |
redisclient = require('redis-node-client/lib/redis-client'); | |
redis = redisclient.createClient(); | |
sys = require('sys'); | |
configure(function () { |
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.paths.unshift('lib'); | |
require('express'); | |
flow = require('flow-js/flow'); | |
require('express/plugins'); | |
redisclient = require('redis-node-client/lib/redis-client'); | |
redis = redisclient.createClient(); | |
sys = require('sys'); | |
configure(function () { |
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.paths.unshift('lib'); | |
require('express'); | |
require('express/plugins'); | |
redisclient = require('redis-node-client/lib/redis-client'); | |
redis = redisclient.createClient(); | |
sys = require('sys'); | |
configure(function () { | |
use(Logger); |
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.paths.unshift('lib'); | |
require('express'); | |
require('express/plugins'); | |
redisclient = require('redis-node-client/lib/redis-client'); | |
redis = redisclient.createClient(); | |
sys = require('sys'); | |
configure(function () { | |
use(Logger); |
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.paths.unshift('lib'); | |
require('express'); | |
require('express/plugins'); | |
redisclient = require('redis-node-client/lib/redis-client'); | |
Parallel = require('parallel').Parallel; | |
redis = redisclient.createClient(); | |
sys = require('sys'); | |
configure(function () { |
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.paths.unshift('lib'); | |
require('express'); | |
require('express/plugins'); | |
redisclient = require('redis-node-client/lib/redis-client'); | |
Parallel = require('parallel').Parallel; | |
redis = redisclient.createClient(); | |
sys = require('sys'); | |
configure(function () { | |
use(Logger); |
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
Node repl: | |
node> var object = {"2":"first","1":"second","3":"third"} | |
node> console.log(object) | |
{ '1': 'second', '2': 'first', '3': 'third' } | |
node> | |
Firebug console: | |
var object = {"2":"first","1":"second","3":"third"} | |
console.log(object); |
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 sys = require('sys'), | |
http = require('http'); | |
auctionSite = http.createClient(80, 'ws30.sync.skoreit.com'); | |
auctionRequest = auctionSite.request('POST', '/request.ashx?key=11111111-1111-1111-1111-111111111111&token=1284514994201', { | |
'host': 'ws30.sync.skoreit.com', | |
'Content-type': 'text/json; charset=utf-8' | |
}); | |
handshakeJSON = [{"channel": "/meta/handshake", "id": 0, "supportedConnectionTypes": [ "long-polling", "callback-polling"], "version": "1.0"}]; | |
console.log(handshakeJSON); |
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
events:12 | |
throw arguments[1]; | |
^ | |
TypeError: Second argument should be a buffer | |
at Client._writeImpl (net:300:14) | |
at Client._writeOut (net:731:25) | |
at Client.write (net:664:17) | |
at outgoingFlush (http:688:18) | |
at Client.<anonymous> (http:909:7) | |
at Client.emit (events:26:26) |
OlderNewer