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 fib = function (a) { return function (b) { return a(function (c) { return b(b)(c); }); }(function (d) { return a(function (e) { return d(d)(e); }); }); }(function (g) { return function (n) { | |
return n <= 2 ? 1 : g(n-1) + g(n-2); | |
}; }); |
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
> [] + []; | |
'' | |
> [] + {} | |
'[object Object]' | |
> {} + [] | |
'[object Object]' | |
> {} + {} | |
'[object Object][object Object]' | |
> |
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 definition: | |
function (x, y, z) { } | |
=> | |
function (this, x, y, z) { } | |
Function call: | |
f(x, y, z); | |
=> | |
f(null, x, y, z); |
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
"use strict"; | |
var request = require('request'); | |
var WorkingQueue = require('capisce').WorkingQueue; | |
var http = require('http'); | |
var config = require('../config'); | |
var currentRequests = 0; | |
var benchPage = function (url, expectedLength, callback) { |
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 f() { console.log("First definition: " + new Date()); } | |
undefined | |
> setInterval(function() { f(); }, 1000); | |
584 | |
First definition: Wed Apr 18 2012 11:43:10 GMT+0400 (Russian Standard Time) | |
First definition: Wed Apr 18 2012 11:43:11 GMT+0400 (Russian Standard Time) | |
First definition: Wed Apr 18 2012 11:43:12 GMT+0400 (Russian Standard Time) | |
First definition: Wed Apr 18 2012 11:43:13 GMT+0400 (Russian Standard Time) | |
First definition: Wed Apr 18 2012 11:43:14 GMT+0400 (Russian Standard Time) | |
First definition: Wed Apr 18 2012 11:43:15 GMT+0400 (Russian Standard Time) |
NewerOlder