Skip to content

Instantly share code, notes, and snippets.

View kickingvegas's full-sized avatar

Charles Choi kickingvegas

View GitHub Profile
#!/bin/bash
echo '**' `date` >> $HOME/Documents/journal/journal.txt
emacs -nw +10000000 $HOME/Documents/journal/journal.txt
- (UITextRange *)rangeForWordAtPoint:(CGPoint p) {
UITextPosition *position = [_textView closestPositionToPoint:p];
UITextRange *range =
[_textView rangeEnclosingPosition:position
withGranularity:UITextGranularityWord
inDirection:UITextLayoutDirectionForward];
// UITextStorageDirectionForward, not UITextStorageDirectionRight!
return range;
}
- (NSArray *)allKeys {
NSMutableArray *result;
NSMutableArray *classList;
classList = [[NSMutableArray alloc] init];
result = [[NSMutableArray alloc] init];
Class cls = [self class];
Class nsObjectClass = [NSObject class];
@kickingvegas
kickingvegas / gist:1930417
Created February 28, 2012 07:39
UI Automation Example Comments
Please note any comments about the UI Automation Example.
https://github.com/kickingvegas/UI-Automation-Example/blob/gh-pages/uiautomation.md