Skip to content

Instantly share code, notes, and snippets.

@briancavalier
briancavalier / queue.js
Created August 10, 2012 15:46
A simple promise-based task queue
var when = require('../when');
/**
* A simple promise-based task queue that runs tasks in sequence without
* overlap. Adding a task returns a promise that resolves when that task
* completes.
*/
function Queue() {}
Queue.prototype = {
@peterudo
peterudo / hack.sh
Created April 2, 2012 09:22 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2282017/23b1f82ef37c6e47182d8124484c35ca72e0c819/hack.sh | sh
#
@funkatron
funkatron / chrometest.sh
Created February 9, 2011 15:20
To do testing on local HTML/JS apps in Chrome, I start it with this script to disable some security checks.
#!/bin/bash
# USAGE: /path/to/chrometest <localfile.html>
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
--disable-web-security \
--allow-file-access-from-files \
--allow-file-access \
--log-level 3 \
$@