This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.
— Erik
| function Promise() { | |
| var callbacks = [], | |
| promise = { | |
| resolve: resolve, | |
| reject: reject, | |
| then: then, | |
| safe: { | |
| then: function safeThen(resolve, reject) { | |
| promise.then(resolve, reject); | |
| } |
| // | |
| // ARC Helper | |
| // | |
| // Version 2.2 | |
| // | |
| // Created by Nick Lockwood on 05/01/2012. | |
| // Copyright 2012 Charcoal Design | |
| // | |
| // Distributed under the permissive zlib license | |
| // Get the latest version from here: |
| #!/bin/bash | |
| #set -x | |
| # Shows you the largest objects in your repo's pack file. | |
| # Written for osx. | |
| # | |
| # @see http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/ | |
| # @author Antony Stubbs |
| // add child view | |
| UIViewController* controller = [self.storyboard instantiateViewControllerWithIdentifier:@"test"]; | |
| [self addChildViewController:controller]; | |
| controller.view.frame = CGRectMake(0, 44, 320, 320); | |
| [self.view addSubview:controller.view]; | |
| [controller didMoveToParentViewController:self]; | |
| // remove child view | |
| UIViewController *vc = [self.childViewControllers lastObject]; | |
| [vc.view removeFromSuperview]; |
| // | |
| // UIImage-Extensions.m | |
| // | |
| // Created by Hardy Macia on 7/1/09. | |
| // Copyright 2009 Catamount Software. All rights reserved. | |
| // | |
| #import "UIImage-Extensions.h" | |
| CGFloat DegreesToRadians(CGFloat degrees) {return degrees * M_PI / 180;}; |
Create a Podfile at the root of your project
platform :ios, '5.0'
pod 'AFNetworking'
pod 'OHAttributedLabel'| -- create new service in automator | |
| -- set input to "no input" instead of "text" | |
| -- add new task: run applescript | |
| on run {input, parameters} | |
| tell application "Finder" | |
| activate | |
| set new_window to make new Finder window | |
| end tell | |
| end run |
| // | |
| // AFTestSpec.m | |
| @interface AlwaysSucceedClient : AFHTTPClient | |
| @end | |
| @implementation AlwaysSucceedClient | |
| - (void)postPath:(NSString *)path parameters:(NSDictionary *)parameters success:(void (^)(AFHTTPRequestOperation *, id))success failure:(void (^)(AFHTTPRequestOperation *, NSError *))failure | |
| { | |
| NSURLRequest *request = [self requestWithMethod:@"POST" path:path parameters:parameters]; | |
| AFHTTPRequestOperation *operation = [self HTTPRequestOperationWithRequest:request success:success failure:failure]; |