Skip to content

Instantly share code, notes, and snippets.

View Nahiduzzaman's full-sized avatar
🏠
Working from home

Md. Nahiduzzaman Rose Nahiduzzaman

🏠
Working from home
View GitHub Profile
@Nahiduzzaman
Nahiduzzaman / client.js
Created March 11, 2017 19:34 — forked from jamilservicos/client.js
socket.io multiples fix
'use strict';
var reconnection = true,
reconnectionDelay = 5000,
reconnectionTry = 0;
function initClient() {
connectClient();
}
@Nahiduzzaman
Nahiduzzaman / test.js
Created September 8, 2016 07:49 — forked from ProfAvery/test.js
Using Underscore.js from the Node.js REPL
/*
Per <http://stackoverflow.com/questions/5691901/using-the-underscore-module-with-node-js>,
from the Node.js REPL, use two underscores (__) instead of a single underscore (_)
because Node uses _ for the last return value.
Note that if your program is in a file, you can still use a single underscore (_).
*/
var __ = require("underscore");
__.each([1, 2, 3], function(e) { console.log(e); });
// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html