Skip to content

Instantly share code, notes, and snippets.

@sjaveed
sjaveed / gist:22426672f799f58c9d7c5850b3f1da45
Created March 18, 2019 01:47 — forked from jimbojsb/gist:1630790
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@sjaveed
sjaveed / GIF-Screencast-OSX.md
Created June 1, 2017 20:23 — forked from dergachev/GIF-Screencast-OSX.md
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

Instructions

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

@sjaveed
sjaveed / game.rb
Last active August 29, 2015 14:24
class Game < ActiveRecord::Base
belongs_to :schedule
belongs_to :contestant_a, polymorphic: true
belongs_to :contestant_b, polymorphic: true
has_one :score, dependent: :destroy
def winner
score.winner