Skip to content

Instantly share code, notes, and snippets.

View jakepetroules's full-sized avatar

Jake Petroules jakepetroules

View GitHub Profile
amderror
@jakepetroules
jakepetroules / example.m
Last active August 27, 2016 09:44
Drawing animated focus rings in Cocoa
#import <dlfcn.h>
static off_t lookupPrivateSymbol(const char *path, const char *symbol)
{
// TODO: Parse the Mach-O file
NSTask *task = [[NSTask alloc] init];
task.launchPath = @"/usr/bin/nm";
task.arguments = @[@"-a", @(path)];
NSPipe *outputPipe = [NSPipe pipe];
task.standardOutput = outputPipe;
@jakepetroules
jakepetroules / keybase.md
Created October 25, 2014 05:31
keybase.md

Keybase proof

I hereby claim:

  • I am jakepetroules on github.
  • I am jakepetroules (https://keybase.io/jakepetroules) on keybase.
  • I have a public key whose fingerprint is 4E94 7E82 88AF CAFA E8C9 4C37 4E94 8A55 BDD5 A8F2

To claim this, I am signing this object: