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/bash | |
echo '**' `date` >> $HOME/Documents/journal/journal.txt | |
emacs -nw +10000000 $HOME/Documents/journal/journal.txt | |
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
- (UITextRange *)rangeForWordAtPoint:(CGPoint p) { | |
UITextPosition *position = [_textView closestPositionToPoint:p]; | |
UITextRange *range = | |
[_textView rangeEnclosingPosition:position | |
withGranularity:UITextGranularityWord | |
inDirection:UITextLayoutDirectionForward]; | |
// UITextStorageDirectionForward, not UITextStorageDirectionRight! | |
return range; | |
} |
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
- (NSArray *)allKeys { | |
NSMutableArray *result; | |
NSMutableArray *classList; | |
classList = [[NSMutableArray alloc] init]; | |
result = [[NSMutableArray alloc] init]; | |
Class cls = [self class]; | |
Class nsObjectClass = [NSObject class]; | |
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
Please note any comments about the UI Automation Example. | |
https://github.com/kickingvegas/UI-Automation-Example/blob/gh-pages/uiautomation.md | |
NewerOlder