Skip to content

Instantly share code, notes, and snippets.

View parsingphase's full-sized avatar

Richard George parsingphase

View GitHub Profile
console.log('Start...');
var cluster = require('cluster');
console.log('required');
var isMaster = cluster.isMaster;
console.log('isMaster? ' + isMaster);
if (isMaster) {
// Listen for dying workers
@parsingphase
parsingphase / gist:a1f763e5e654d03789d0
Created February 5, 2015 16:17
Eternal hangup from promises.
/**
* Created by richardg on 05/02/2015.
*/
// ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
// a promise calls its passed-in resolve() function when it's done ?
//var Promise = require("nodegit-promise");
var Promise = require("promise");

Keybase proof

I hereby claim:

  • I am parsingphase on github.
  • I am parsingphase (https://keybase.io/parsingphase) on keybase.
  • I have a public key whose fingerprint is 3AFF 7E72 CB22 4B5B FC6F DD2F 1D90 3D3C 598B 7770

To claim this, I am signing this object:

@parsingphase
parsingphase / checkSismoHooks.php
Last active August 29, 2015 14:06
Script to replace all the post-commit git hooks required by a sismo setup
<?php
/**
* Created by PhpStorm.
* User: parsingphase
* Date: 19/09/14
* Time: 09:29
*/
namespace Sismo;