Skip to content

Instantly share code, notes, and snippets.

View peutetre's full-sized avatar
in a loop, building momo.coach and audio2text.email

Paul Panserrieu peutetre

in a loop, building momo.coach and audio2text.email
View GitHub Profile
@peutetre
peutetre / .zshrc
Created October 23, 2013 22:27 — forked from SlexAxton/.zshrc
gifify() {
if [[ -n "$1" ]]; then
if [[ $2 == '--good' ]]; then
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif
rm out-static*.png
else
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif
fi
else
@peutetre
peutetre / annotated.js
Created May 17, 2011 18:36 — forked from madrobby/annotated.js
Unit testing
var test = function(
a, // a object holding test functions
b, // a logging function, taking multiple arguments
c, // placeholder
d, // placeholder
e, // placeholder
f // placeholder
){
c = d = e = 0; // initialize asserts, failures and exception counts to 0
for ( // iterate