News for hackers. Stuff that matters.
Re:Choosing a Programming Language for Interviews by tracker1 on Monday February 17, 2014 @03:53PM (#7254419)
stdin/out for node.js

    var i=0
        ,stream = require("stream")
        ,rl = require('readline').createInterface({
            input: process.stdin
            ,output: new stream.Writable() 
        });
    rl.on('line',function(line){
        process.stdout.write(((+line || 0) * ++i) + '\n');
    });
    process.stdin.resume();
I actually know several languages... ;-) Just find that node is my go to tool these days.

There are no comments on this comment yet.