This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| function isRetina(){ | |
| return (('devicePixelRatio' in window && devicePixelRatio > 1) || | |
| ('matchMedia' in window && matchMedia("(min-resolution:144dpi)").matches)) | |
| } |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| /** | |
| * An implementation for Quicksort. Doesn't | |
| * perform as well as the native Array.sort | |
| * and also runs the risk of a stack overflow | |
| * | |
| * Tests with: | |
| * | |
| * var array = []; | |
| * for(var i = 0; i < 20; i++) { | |
| * array.push(Math.round(Math.random() * 100)); |
| # shove this in ~/.chef/bootstrap/joyent-smartos.erb | |
| # run knife bootstrap <hostname> -d joyent-smartos | |
| bash -c ' | |
| if [ ! -f /opt/local/bin/chef-client ]; then | |
| cd /tmp | |
| pkgin install gcc-compiler gcc-runtime gcc-tools-0 ruby19 scmgit-base scmgit-docs gmake sun-jdk6 | |
| wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.10.tgz | |
| tar -xzf rubygems-1.8.10.tgz | |
| cd rubygems-1.8.10 |