This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| exec <"$0" || exit; read v; read v; exec /usr/bin/osascript - "$@"; exit | |
| -- Your AppleScript here | |
| on run argv | |
| if (count argv) is 0 then | |
| set DeviceName to "iPad" | |
| else | |
| set DeviceName to item 1 of argv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma mark - container view controller | |
| - (CGRect)frameForContentViewController:(UIViewController*)contentViewController { | |
| return self.view.bounds; | |
| } | |
| - (void)addContentViewController: (UIViewController*)contentViewController; { | |
| [self addChildViewController:contentViewController]; | |
| contentViewController.view.frame = [self frameForContentViewController:contentViewController]; | |
| [self.view addSubview:contentViewController.view]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // UIViewController+KeyboardNotifications.h | |
| // | |
| // | |
| // Created by Arnaud Coomans on 15/02/13. | |
| // Copyright (c) 2013 Arnaud Coomans. All rights reserved. | |
| // | |
| #import <UIKit/UIKit.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // CPModelTestCase.h | |
| // CoursePad | |
| // | |
| // Created by Arnaud Coomans on 16/01/13. | |
| // Copyright (c) 2013 Archer. All rights reserved. | |
| // | |
| #import <SenTestingKit/SenTestingKit.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # http://pypi.python.org/pypi/twitter_oauth/0.2.0 | |
| # pip install twitter_oauth | |
| import twitter_oauth | |
| print "remember to leave callback blank in twitter settings!!" | |
| consumer_key = 'CONSUMER_KEY' | |
| consumer_secret = 'CONSUMER_SECRET' | |
| get_oauth_obj = twitter_oauth.GetOauth(consumer_key, consumer_secret) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <objc/message.h> | |
| IMP tableView_cellForRowAtIndexPath = nil; | |
| IMP viewDidAppear = nil; | |
| CGFloat myMethodIMP(id self, SEL _cmd, UITableView *tableView, int section) { | |
| // implementation .... | |
| NSLog(@"%@", tableView); | |
| NSLog(@"%d", section); | |
NewerOlder