Skip to content

Instantly share code, notes, and snippets.

View benvinegar's full-sized avatar
What's happening?

Ben Vinegar benvinegar

What's happening?
View GitHub Profile
dergachev /
Last active July 17, 2024 14:20
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF


To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

ded / parallel.js
Created July 21, 2011 01:10
call multiple async methods in parallel and receive the result in a callback
function parallel() {
var args = Array.apply(null, arguments)
, callback = args.pop()
, returns = []
, len = 0
args.forEach(function (el, i) {
el(function () {
var a = Array.apply(null, arguments)
, e = a.shift()
if (e) return callback(e)
chanian /
Created June 16, 2011 18:52
Was that movie originally filmed in IMAX? Or am I paying extra for good marketing...
# usage: ./ "tron 2"
# Note, this doesn't always work as it is clearly scrapping imdb.
# comment below for any suggested changes!
echo "Was it filmed in IMAX?"
q=`echo $1 | sed -e s/\ /\+/g`