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
// | |
// Created by Damien DeVille on 6/23/13. | |
// Copyright (c) 2013 Damien DeVille. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <objc/runtime.h> | |
extern id _objc_setNilReceiver(id newNilReceiver); | |
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
@interface SomeViewController : UIViewController | |
@end | |
@implementation SomeViewController | |
- (IBAction)show:(id)sender | |
{ | |
UIImagePickerController *pickerController = [UIImagePickerController new]; | |
[pickerController setDelegate:(id)self]; |
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
@interface RetrievalOperation : NSOperation | |
+ (id)retrievalOperationWithBlock:(id (^)(void))block; | |
@property (readonly, strong, nonatomic) id result; | |
@end | |
@interface RetrievalOperation (/* Private */) | |
@property (readwrite, strong, nonatomic) id result; | |
@property (copy, nonatomic) id (^block)(void); | |
@end |
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
- (void)printViewHierarchy:(UIView *)view | |
{ | |
if (view == nil) | |
return; | |
NSLog(@"%@", view); | |
for (UIView *subview in [view subviews]) | |
{ | |
[self printViewHierarchy: subview]; |
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
set track_bpm to 270 | |
set playlist_name to "My Playlist" | |
tell application "iTunes" | |
set retrieved_tracks to get tracks where bit rate is track_bpm | |
set created_playlist to make new user playlist with properties {name:playlist_name} | |
repeat with current_track in retrieved_tracks | |
duplicate current_track to created_playlist | |
end repeat |
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
tell application "Safari" | |
set current_tab to current tab of front window | |
set tab_title to name of current_tab | |
set tab_address to URL of current_tab | |
tell application "Spillo" | |
make new bookmark with properties {url:tab_address, title:tab_title} | |
end tell | |
end tell |
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 <unistd.h> | |
#import <pwd.h> | |
NSURL *_LLActualHomeDirectoryLocation(void) { | |
static NSURL *homeDirectoryLocation = nil; | |
static dispatch_once_t homeDirectoryLocationPredicate = 0; | |
dispatch_once(&homeDirectoryLocationPredicate, ^ { | |
uid_t uid = getuid(); | |
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
The Young Folks (1940) | |
Go See Eddie (1940) | |
The Hang of It (1941) | |
The Heart of a Broken Story (1941) | |
The Long Debut of Lois Taggett (1942) | |
Personal Notes of an Infantryman (1942) | |
Mrs. Hincher (Unpublished) (1942) | |
The Last and Best of the Peter Pans (Unpublished) (1942) | |
The Varioni Brothers (1943) | |
Both Parties Concerned (1944) |
NewerOlder