Some parts taken from: https://gist.github.com/kujohn/7209628
ipfw is officially deprecated and removed in OS X Yosemite. Pow requires another program pf to handle the port forwarding.
Create file /etc/pf.anchors/pow
Some parts taken from: https://gist.github.com/kujohn/7209628
ipfw is officially deprecated and removed in OS X Yosemite. Pow requires another program pf to handle the port forwarding.
Create file /etc/pf.anchors/pow
| - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
| self.window = [[UIWindow alloc] initWithFrame:UIScreen.mainScreen.bounds]; | |
| self.window.backgroundColor = [UIColor whiteColor]; | |
| UIViewController *controller = [UIViewController new]; | |
| controller.title = @"Testing..."; | |
| self.rootViewController = [[UINavigationController alloc] initWithRootViewController:controller]; | |
| self.window.rootViewController = self.rootViewController; | |
| [self.window makeKeyAndVisible]; | |
| // Use Aspects to hook into XCTestCase to get better feedback than just the log. |
| platform :ios, '7.0' | |
| # Core Data | |
| pod 'SSDataKit', :git => 'https://github.com/soffes/SSDataKit', :commit => '60d432e734ae11e8cfedac8ac5f68c0ce8a1b9ba' | |
| # On-disk & in-memory caching | |
| pod 'SAMCache' | |
| # Fast image view for Core Image | |
| pod 'SAMCoreImageView', '0.1.3' |
| #import <Foundation/Foundation.h> | |
| @interface NSObject (Subclasses) | |
| + (NSSet *) subclasses_xcd; | |
| @end |
| // Copyright (c) 2012-2013 Peter Steinberger (http://petersteinberger.com) | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: | |
| // | |
| // The above copyright notice and this permission notice shall be included in |
| def tip(msg); puts; puts msg; puts "-"*100; end | |
| # | |
| # 30 Ruby 1.9 Tips, Tricks & Features: | |
| # http://www.igvita.com/2011/02/03/new-ruby-19-features-tips-tricks/ | |
| # | |
| tip "Upgrading to Ruby 1.9 is simple: rvm install 1.9.2 && rvm --default 1.9.2" | |
| tip "Ruby 1.9 supports named captures in regular expressions!" |
| ;(function($) { | |
| // Equal height items | |
| $.fn.equalHeight = function(options) { | |
| var opts = $.extend({}, $.fn.equalHeight.defaults, options); | |
| return this.each(function() { | |
| var $this = $(this), | |
| o = $.meta ? $.extend({}, opts, $this.data()) : opts, | |
| maxHeight = 0; | |