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
### Keybase proof | |
I hereby claim: | |
* I am sidorares on github. | |
* I am sidorares (https://keybase.io/sidorares) on keybase. | |
* I have a public key whose fingerprint is 4899 77FC 876C 35BE 2738 875A 93C1 A8CE 1680 0045 | |
To claim this, I am signing this 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
TCP.connect ({ | |
host: "google.com", | |
port: 80, | |
connected: function () { | |
log("connected to google.com"); | |
} | |
}); |
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
function encode(data) { | |
var chunk = data.toString(); | |
return chunk.length.toString(16) + "\r\n" + chunk + "\r\n"; | |
} | |
var server = new HTTP.Server("localhost", 8000); | |
server.onRequest = function (request) { | |
log( "path: " + request.path ); | |
log( "query string: " + request.query_string ); |
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
function encode(data) { | |
var chunk = data.toString(); | |
return chunk.length.toString(16) + "\r\n" + chunk + "\r\n"; | |
} | |
var server = new HTTP.Server("localhost", 8000); | |
server.onRequest = function (request) { | |
log( "path: " + request.path ); | |
log( "query string: " + request.query_string ); |
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
function bbb(x) { | |
var cc = x + 1; | |
var dd = cc + 2; | |
debugger; | |
return dd; | |
} | |
setInterval(function() { | |
var aa = 123; | |
//debugger; |
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
;(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | |
var BigNumber = require('bignumber.js'); | |
/* | |
json_parse.js | |
2012-06-20 | |
Public Domain. | |
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. |
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
135 1.3% 7.5% RegExp: ^(\\/?|)([\\s\\S]*?)((?:\\.{1\,2}|[^\\/]+?|)(\\.[^.\\/]*|))(?:[\\/]*)$ | |
71 0.7% 3.9% LazyCompile: *Time.start /home/brian/middleware/node_modules/nodetime/lib/core/time.js:35 | |
41 0.4% 2.3% LazyCompile: *tree.visitor.visit /home/brian/middleware/node_modules/less/lib/less/visitor.js:8 | |
37 0.4% 2.1% LazyCompile: ~Contextify.sandbox.run /home/brian/middleware/node_modules/jsdom/node_modules/contextify/lib/contextify.js:11 | |
36 0.4% 2.0% Stub: StringAddStub | |
35 0.3% 1.9% Stub: CEntryStub | |
32 0.3% 1.8% Builtin: A builtin from the snapshot | |
29 0.3% 1.6% Stub: SubStringStub | |
29 0.3% 1.6% Stub: RegExpExecStub | |
29 0.3% 1.6% LazyCompile: *Time.done /home/brian/middleware/node_modules/nodetime/lib/core/time.js:59 |
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
{ name: '/org/freedesktop/NonExisting/Manager', | |
service: | |
{ name: 'org.freedesktop.NonExisting', | |
bus: | |
{ connection: [Object], | |
serial: 2, | |
cookies: [Object], | |
methodCallHandlers: {}, | |
signals: [Object], | |
exportedObjects: {}, |
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
#!/bin/sh | |
CURRENT=$(node -v) | |
VERSION=$(curl -L -s http://nodejs.org/dist/latest/ \ | |
| egrep -o '[0-9]+\.[0-9]+\.[0-9]+' \ | |
| tail -n1) | |
PLATFORM=darwin | |
ARCH=x64 | |
PREFIX="$HOME/node-v$VERSION-$PLATFORM-$ARCH" |
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
[marking boo 0x168ec4f7ae88 for recompilation, reason: small function, ICs with typeinfo: 1/8 (12%)] | |
Analyzing block B0 | |
Initial inferred range of 1 (Constant) set to [-2147483648,2147483647] | |
Initial inferred range of 54 (Constant) set to [1,1] | |
Initial inferred range of 15 (Constant) set to [-2147483648,2147483647] | |
Initial inferred range of 2 (ArgumentsObject) set to [-2147483648,2147483647] | |
Initial inferred range of 3 (Parameter) set to [-2147483648,2147483647] | |
Initial inferred range of 4 (Context) set to [-2147483648,2147483647] | |
Analyzing block B1 | |
Initial inferred range of 10 (LoadGlobalCell) set to [-2147483648,2147483647] |