Skip to content

Instantly share code, notes, and snippets.

View stephenmathieson's full-sized avatar

Stephen Mathieson stephenmathieson

View GitHub Profile
@yields
yields / License
Last active December 12, 2015 02:39
quick plugin for st3 to build components on save.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@mjackson
mjackson / mockstream.js
Created September 7, 2011 17:31
A mock stream wrapper for node.js
var util = require("util"),
Stream = require("stream").Stream;
module.exports = MockStream;
/**
* A constructor that inherits from Stream and emits data from the given
* `source`. If it's a Stream it will be piped through to this stream.
* Otherwise, it should be a string or a Buffer which will be emitted by this
* stream as soon as possible.