Skip to content

Instantly share code, notes, and snippets.

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:

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:

Keybase proof

I hereby claim:

  • I am mmorey on github.
  • I am morey (https://keybase.io/morey) on keybase.
  • I have a public key whose fingerprint is B31D DC7A CD71 901D 36EF 621B 718D 7B79 0765 2F54

To claim this, I am signing this object:

// Since ModelManager is usually a simple facade for many other smaller managers, it can dispatch most method calls to its subcomponents based on which protocol includes the selector.
BOOL ProtocolIncludesSelector (Protocol *protocol, SEL selector)
{
struct objc_method_description methodDescription = protocol_getMethodDescription(protocol, selector, YES, YES);
return NULL != methodDescription.name;
}
// Photoshop Script to Create iPhone Icons from iTunesArtwork
// Original: https://gist.github.com/appsbynight/3681050
// Turn debugger on. 0 is off.
// $.level = 1;
try
{
// Prompt user to select iTunesArtwork file. Clicking "Cancel" returns null.
var iTunesArtwork = File.openDialog("Select a sqaure PNG file that is at least 1024x1024.", "*.png", false);