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 fs = require('fs'), | |
carrier = require('carrier'); | |
var lookup = {}, | |
words = []; | |
console.time('program'); | |
carrier.carry( | |
fs.createReadStream('words'), |
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 fs = require('fs'), | |
carrier = require('carrier'); | |
var hashes = [], | |
words = []; | |
carrier.carry( | |
fs.createReadStream('words', { | |
flags: 'r' |
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
console.time('Program'); | |
function getKeyPrint(data) { | |
data.forEach(function(word) { | |
console.log(word); | |
}); | |
} |
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(){ | |
var window,top,self,parent,global; | |
// How do you get the global object here? | |
// Used function constructor as smaller then defining like function() {} | |
var global = Function('return this')(); | |
}).call({}); |
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
The Infamous Hello World Program. | |
Romeo, a young man with a remarkable patience. | |
Juliet, a likewise young woman of remarkable grace. | |
Ophelia, a remarkable woman much in dispute with Hamlet. | |
Hamlet, the flatterer of Andersen Insulting A/S. | |
Act I: Hamlet's insults and flattery. |
NewerOlder