Skip to content

Instantly share code, notes, and snippets.

View sebprunier's full-sized avatar

Sébastien Prunier sebprunier

View GitHub Profile
var casper = require("casper").create();
casper.start();
var screenSize = [1024, 768];
var frameCount = 68;
function slideUrl(i) {
return 'http://localhost:9000/slides.html#'+i+'.0'
}
function frameName(i) {
var n = i < 10 ? '0' + i : i;
@dgageot
dgageot / git-build
Created May 16, 2012 08:12
Unbreakeable build
#!/bin/bash
function alert_user {
echo "${1}"
which -s growlnotify && growlnotify `basename $0` -m "${1}"
}
function exit_ko {
alert_user "${1}"; exit 1
}