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
154 git | |
68 cd | |
56 make | |
52 vim | |
52 ls | |
25 sudo | |
14 npm | |
11 rm | |
10 ssh | |
10 node |
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 (global) { | |
var _namespace = global.namespace | |
, namespace = {}; | |
namespace.push = function push (fn) { | |
return fn && typeof fn === 'function' && fn(namespace); | |
}; | |
if (_namespace && _namespace.length) { | |
var i = _namespace.length; |
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 () { | |
var all = document.getElementsByTagName('*') | |
, matches = 0 | |
, misses = 0 | |
, total = all.length | |
, i = all.length | |
, selector | |
, match; | |
while (i--) { |
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
The "sys" module is now called "util". It should have a similar interface. | |
info - socket.io started | |
app listening on http://0.0.0.0:3000 | |
node.js:202 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
Error: connect Unknown system errno 65 | |
at errnoException (net.js:589:11) | |
at connect (net.js:473:18) |
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
HTTPClient.prototype.end = function () { | |
var self = this; | |
Object.keys(this.agent.sockets).forEach(function (socket) { | |
console.log(self.agent.sockets[socket][0]._handle.socket.onend()); | |
self.agent.sockets[socket]._handle.onend(); | |
}); | |
}; |
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 () { | |
var call = Function.prototype.call; | |
// override | |
Function.prototype.call = function () { | |
console.log('called', arguments.callee); | |
call.apply(call, arguments); | |
} | |
})(); |
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
/*! | |
* socket.io-node | |
* Copyright(c) 2011 LearnBoost <[email protected]> | |
* MIT Licensed | |
*/ | |
/** | |
* Module dependencies. | |
*/ |
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 benchmark = require('benchmark') | |
, microtime = require('microtime') | |
, io = require('../') | |
, parser = io.parser; | |
var encoding = new benchmark.Suite | |
, decoding = new benchmark.Suite; | |
encoding.add('string', function () { | |
parser.encodePacket({ |
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
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
// Simple test program invoked with an option to eagerly | |
// compile all code that is loaded in the isolate. | |
// VMOptions=--compile_all | |
class HelloDartTest { | |
static testMain() { | |
print("Hello, Darter!"); |
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 regexp = /\+((?:\+)?[\w\-]+)*(?:\.v\d+\.\d+\.\d+)?(?:\.js)$/g; | |
console.log(regexp.exec('/socket.io+websocket.v0.8.10.js')); // ["+websocket.v0.8.10.js", "websocket"] | |
console.log(regexp.exec('/socket.io+websocket.v0.8.10.js')); // null |