Skip to content

Instantly share code, notes, and snippets.

// declaration
function foo (n) { return n + 1; }
// expression
// note, fat arrow functions have very different meaning (usually what I want, though)
var foo = function (n) { return n + 1; };
var foo = (n) => { return n + 1; };
var foo = n => n + 1;
// object methods
@omgmog
omgmog / gist:33ec177eea6b78adbaf3
Created May 28, 2014 14:28
Convert an m4v to gif with ffmpeg
ffmpeg -i input.m4v -pix_fmt rgb24 -r 10 -y -s [width]x[height] output.gif