Skip to content

Instantly share code, notes, and snippets.


Dominic Tarr dominictarr

View GitHub Profile

a Stream spec


I've now moved this stuff into it's own repo and added an executable checker, and some nifty diagrams of the stream state transitions state diagrams

This gist is no longer being maintained. goto dominictarr/stream-spec

tj / Makefile
Created Oct 20, 2011
tiny bash test runner
View Makefile
TESTS = $(shell find test/test.*.js)
@./test/ $(TESTS)
.PHONY: test
mralexgray / bash-stack.bash
Created Sep 11, 2011 — forked from tlrobinson/bash-stack.bash
Bash XML parser and stack, plus Gmail XML feed parsing example
View bash-stack.bash
#!/usr/bin/env bash
# Bash Stack
set -o errtrace
set -o errexit
set -o nounset
declare -a stack
View stack.js
var error = new Error;
Object.defineProperty(global, '__stack', {
get: function(){
Error.prepareStackTrace = function(err, frames){
err.frames = frames;
try {
throw error;
} catch (err) {