Skip to content

Instantly share code, notes, and snippets.

View cworsley4's full-sized avatar
👷‍♂️
Wreckingball

Cecil Worsley cworsley4

👷‍♂️
Wreckingball
View GitHub Profile
@cworsley4
cworsley4 / Makefile
Last active December 4, 2015 23:51
Example of postMessage with small message bus
start:
serve .
install:
npm install -g serve
@cworsley4
cworsley4 / blaster.js
Created March 24, 2015 04:30
Shows the memory leak found in io.js (https://github.com/iojs/io.js/pull/1244)
var superagent = require('superagent');
var url = 'https://localhost:3000';
var complete = false;
var maxReqs = 150;
var activeReqs = 0;
function run() {
@cworsley4
cworsley4 / pluck.js
Created November 7, 2014 21:07
Deep Pluck for Object Properties
/**
* Deep Pluck a value from an object by string.
* Give the method a dot delemited string to a property of the given
* object. It will recurse over it, until it hits the target property
* or, if it doesn't exist, it will return an empty string.
*
* @plug Special thanks to user 'clocklear' for his help with this Deep Pluck
*
*