Skip to content

Instantly share code, notes, and snippets.

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:

//
// NSObject+BlockObservation.h
// Version 1.0
//
// Andy Matuschak
// andy@andymatuschak.org
// Public domain because I love you. Let me know how you use it.
//
#import <Cocoa/Cocoa.h>
@tternes
tternes / wwdc2012.rb
Last active December 12, 2015 12:19 — forked from jfahrenkrug/wwdc2013.rb
# in 2012 by Johannes Fahrenkrug, http://springenwerk.com
# See you at WWDC!
require 'rubygems'
require 'open-uri'
class WWDC2012
def self.announced?
begin
title = open('https://developer.apple.com/wwdc/') do |f|
// .h
@interface NSNull (null)
+ (void) setWarnsOnNullAccess:(BOOL) warnsOnNullAccess;
- (BOOL) boolValue;
- (char) charValue;
- (NSDecimal) decimalValue;
- (double) doubleValue;
- (float) floatValue;
- (int) intValue;
@tternes
tternes / gist:2054687
Created March 17, 2012 03:25 — forked from skrul/gist:2051046
Symbolicating iOS crashes with Xcode 4.3.1's symbolicatecrash script
Seems to help now to give the path to the symbols that match the version of iOS that produced the crash.
For iOS 5.1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrash -v crashfile /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1\ \(9B176\)/Symbols
For iOS 5.0.1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrash -v crashfile ~/Library/Developer/Xcode/iOS\ DeviceSupport/5.0.1\ \(9A405\)/Symbols