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:
| # author: tmwhere.com | |
| # --- third party dependencies | |
| PIXI = require('pixi.dev') | |
| _ = require('lodash') | |
| noise = require('perlin').noise | |
| Quadtree = require('quadtree').Quadtree | |
| seedrandom = require('seedrandom') | |
| # --- |
| (defn flip [function] | |
| (fn | |
| ([] (function)) | |
| ([x] (function x)) | |
| ([x y] (function y x)) | |
| ([x y z] (function z y x)) | |
| ([a b c d] (function d c b a)) | |
| ([a b c d & rest] | |
| (->> rest | |
| (concat [a b c d]) |
| #!/bin/bash | |
| # Sync Homebrew installations between Macs via Dropbox | |
| # | |
| BREW="/usr/local/bin/brew" | |
| # first get local settings | |
| echo "Reading local settings ..." | |
| rm -f /tmp/brew-sync.* |
| /* The Grid ---------------------- */ | |
| .lt-ie9 .row { width: 940px; max-width: 100%; min-width: 768px; margin: 0 auto; } | |
| .lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; } | |
| .lt-ie9 .row.large-collapse .column, | |
| .lt-ie9 .row.large-collapse .columns { padding: 0; } | |
| .lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; } | |
| .lt-ie9 .row .row.large-collapse { margin: 0; } | |
| .lt-ie9 .column, .lt-ie9 .columns { float: left; min-height: 1px; padding: 0 15px; position: relative; } | |
| .lt-ie9 .column.large-centered, .columns.large-centered { float: none; margin: 0 auto; } |
| /* | |
| Unity C# Port of Andrea Giammarchi's JavaScript A* algorithm (http://devpro.it/javascript_id_137.html) | |
| Usage: | |
| 0 = walkable; | |
| 1 = wall; | |
| int[][] map = new int[][] | |
| { |
| # based on http://uberblo.gs/2011/06/high-performance-url-shortening-with-redis-backed-nginx | |
| # using code from http://stackoverflow.com/questions/3554315/lua-base-converter | |
| # "database scheme" | |
| # database 0: id ~> url | |
| # database 1: id ~> hits | |
| # database 2: id ~> [{referer|user_agent}] | |
| # database 3: id ~> hits (when id is not found) | |
| # database 4: id ~> [{referer|user_agent}] (when id is not found) | |
| # database 5: key "count" storing the number of shortened urls; the id is generated by (this number + 1) converted to base 62 |
| # A Basic API Controller for Rails | |
| # Handles authentication via Headers, params, and HTTP Auth | |
| # Automatically makes all requests JSON format | |
| # | |
| # Written for production code | |
| # Made public for: http://broadcastingadam.com/2012/03/state_of_rails_apis | |
| # | |
| # Enjoy! | |
| class ApiController < ApplicationController |
| gem 'pg' | |
| group :development do | |
| gem 'ruby-debug' | |
| end | |
| gem 'rake', '~> 0.8.7' | |
| gem 'devise' | |
| gem 'oa-oauth', :require => 'omniauth/oauth' | |
| gem 'omniauth' | |
| gem 'haml' | |
| gem 'dynamic_form' |