Skip to content

Instantly share code, notes, and snippets.

View itaiferber's full-sized avatar

Itai Ferber itaiferber

View GitHub Profile
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
{
var backgroundWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask],
windowContentView = [backgroundWindow contentView];
[windowContentView setBackgroundColor:[CPColor darkGrayColor]];
var movie = [CPFlashMovie flashMovieWithFile:[CPString stringWithString:@"/Users/itaiferber/Desktop/Lore3433.swf"]],
movieView = [[CPFlashView alloc] initWithFrame:CGRectMake(CGRectGetWidth([windowContentView bounds]/2-400), CGRectGetHeight([windowContentView bounds])/2-300, 800, 600)];
[movieView setFlashMovie:movie];
@itaiferber
itaiferber / Terminal Output
Created March 1, 2012 00:48
Installation of FontForge fails on OS X 10.8 with XQuartz
~ => brew install -v fontforge [0, 1820] | 19:44:18
==> Downloading http://downloads.sourceforge.net/project/fontforge/fontforge-source/fontforge_full-20110222.tar.bz2
File already downloaded in /Users/itaiferber/Library/Caches/Homebrew
/usr/bin/tar xf /Users/itaiferber/Library/Caches/Homebrew/fontforge-20110222.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/fontforge/20110222 --enable-double --without-freetype-bytecode
./configure --prefix=/usr/local/Cellar/fontforge/20110222 --enable-double --without-freetype-bytecode
checking for gcc... /usr/bin/clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
~ $ brew --config
HOMEBREW_VERSION: 0.9
HEAD: 1419db330972c67e1be52c2bfe256b2d7ecb07e2
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: dual-core 64-bit core2
OS X: 10.8
Kernel Architecture: x86_64
Xcode: 4.4
GCC-4.0: N/A
@itaiferber
itaiferber / brew --config
Created September 3, 2012 04:29
Homebrew MacVim install log.
HOMEBREW_VERSION: 0.9.3
HEAD: dbe82d9c3141ea003996d96d34cb1d33cd437e43
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.8.1-x86_64
Xcode: 4.4.1
CLT: 4.4.0.0.1.1249367152
GCC-4.0: N/A
GCC-4.2: N/A
@itaiferber
itaiferber / Sorting.m
Created October 21, 2012 18:56
Demonstrates nested sorting using NSSortDescriptors.
#import <Cocoa/Cocoa.h>
@interface IFEntry : NSObject {}
@property (copy, nonatomic) NSString *company;
@property (strong, nonatomic) NSDate *date;
- (instancetype)initWithCompany:(NSString *)company date:(NSDate *)date;
@end

Keybase proof

I hereby claim:

  • I am itaiferber on github.
  • I am itai (https://keybase.io/itai) on keybase.
  • I have a public key whose fingerprint is F84C 731C F431 C75B 3643 C753 3732 EAA7 1216 617F

To claim this, I am signing this object: