Skip to content

Instantly share code, notes, and snippets.

J R jrusev

Block or report user

Report or block jrusev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dineshsprabu
dineshsprabu / async_waterfall_example.js
Created Jan 19, 2016
NodeJS Async WaterFall Example
View async_waterfall_example.js
var async = require('async');
async.waterfall(
[
function(callback) {
callback(null, 'Yes', 'it');
},
function(arg1, arg2, callback) {
var caption = arg1 +' and '+ arg2;
callback(null, caption);
@jpoehls
jpoehls / node-cluster-messaging.js
Created Mar 29, 2012
Simple message passing between cluster master and workers in Node.js
View node-cluster-messaging.js
var cluster = require('cluster');
if (cluster.isWorker) {
console.log('Worker ' + process.pid + ' has started.');
// Send message to master process.
process.send({msgFromWorker: 'This is from worker ' + process.pid + '.'})
// Receive messages from the master process.
You can’t perform that action at this time.