Skip to content

Instantly share code, notes, and snippets.

View rbottomley's full-sized avatar
☂️
Freelancing

Robert Bottomley rbottomley

☂️
Freelancing
  • Norco, CA
View GitHub Profile
@kumatch
kumatch / daemon.js
Created March 25, 2013 01:49
Node.js daemon example
var fs = require('fs');
var INTERVAL = 1000;
var cycle_stop = false;
var daemon = false;
var timer;
process.argv.forEach(function (arg) {
if (arg === '-d') daemon = true;