This file contains 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); | |
This file contains 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 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 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 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 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 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
/Applications/VLC-unstable.app/Contents/MacOS/VLC -I rc screen:// --noaudio --sout "#transcode{vcodec=h264,venc=x264, vb=800,acodec=none,scale=1.0}:std{access=file,mux=mp4,dst=my_first_transcoded_movie.mp4}" |
This file contains 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 - delegate proxying | |
- (BOOL)respondsToSelector:(SEL)selector { | |
return ( | |
[super respondsToSelector:selector] || | |
[self.delegate respondsToSelector:selector] | |
); | |
} | |
- (id)forwardingTargetForSelector:(SEL)selector { |
This file contains 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
var target = UIATarget.localTarget(); | |
// Bundle ID, ie "com.domain.myapp" | |
UIALogger.logDebug("bundleID: " + target.frontMostApp().bundleID()); | |
// Name, ie "iPhone Simulator" | |
UIALogger.logDebug("name : " + target.name()); | |
// Model, ie "iPhone Simulator" | |
UIALogger.logDebug("model: " + target.model()); |
This file contains 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
//__attribute__((noinline)) | |
void sub_1b1638_i(char *v) { | |
int r11 = 0x37; | |
int r6 = 0x65; | |
int r3 = 0x35; | |
int r2 = 0x38; | |
int r4 = 0x31; | |
int r9 = 0x34; | |
int r12 = 0x61; | |
int lr = 0x39; |
OlderNewer