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
QPickOneView* myView = nil; | |
NSArray* nibViews = [[NSBundle mainBundle] loadNibNamed:@"QPickOneView" owner:self options:nil]; | |
for (id currentObject in nibViews) { | |
if ([currentObject isKindOfClass:[QPickOneView class]]) { | |
myView = (QPickOneView *) currentObject; | |
break; | |
} | |
} |
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
// NSNotificationCenter+MainThread.h | |
@interface NSNotificationCenter (MainThread) | |
- (void)postNotificationOnMainThread:(NSNotification *)notification; | |
- (void)postNotificationOnMainThreadName:(NSString *)aName object:(id)anObject; | |
- (void)postNotificationOnMainThreadName:(NSString *)aName object:(id)anObject userInfo:(NSDictionary *)aUserInfo; | |
@end |
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
require "heroku" | |
client = Heroku::Client.new("username", "password") | |
# Update the number of dynos used by the application | |
# app_name = the name of the application | |
# x = the integer number of dynos you want to set, e.g. 3 | |
client.set_dynos("app_name", x) | |
# Update the number of workers used by the application |
NewerOlder