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 / async_waterfall_example.js
Created Jan 19, 2016
NodeJS Async WaterFall Example
View async_waterfall_example.js
var async = require('async');
function(callback) {
callback(null, 'Yes', 'it');
function(arg1, arg2, callback) {
var caption = arg1 +' and '+ arg2;
callback(null, caption);
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 ' + + ' has started.');
// Send message to master process.
process.send({msgFromWorker: 'This is from worker ' + + '.'})
// Receive messages from the master process.
You can’t perform that action at this time.