Skip to content

Instantly share code, notes, and snippets.

View tizzo's full-sized avatar
💭
:shipit: 🚀 📦

Howard Tyson tizzo

💭
:shipit: 🚀 📦
View GitHub Profile
@tizzo
tizzo / README.md
Last active December 16, 2015 10:39

Pet Carousel Redux

A sample implementation.

The code is still being pupulated.

@tizzo
tizzo / casper-responsive-snapshots.coffee
Created December 11, 2012 17:48
Quick gist to demonstrate taking screenshots at different resolutions
console.log 'started'
options =
viewportSize:
width: 1900
height: 1000
snapshot = (width, height, path)->
clip =
top: 0
@tizzo
tizzo / veeweebuild.sh
Created November 12, 2012 17:46
Jenkins Veewee Build Script
VERSION=`VBoxManage -v | sed 's/\(.*\)r\([0-9]*\)/\1/'`
if [ $RELEASE = "precise" ]; then
TEMPLATE="ubuntu-12.04.1-server-i386"
fi
if [ $RELEASE = "lucid" ]; then
TEMPLATE="ubuntu-10.04.4-server-i386"
fi
BOX_NAME="$RELEASE-vbox-$VERSION"
BOX_PATH="boxes/$RELEASE-vbox-$VERSION.box"
if [ `VBoxManage list runningvms | grep -c $BOX_NAME` -eq 1 ]; then
@tizzo
tizzo / sleepy.js
Created September 16, 2011 21:15
A service to take a nap
var http = require('http');
var exec = require("child_process").exec;
http.createServer(function (req, res) {
var duration = req.url.substr(1);
exec("sleep " + duration, function (error, stdout, stderr) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('I have slept for ' + duration + ' seconds!\n');
});
).listen(1337, "192.168.56.136");