Skip to content

Instantly share code, notes, and snippets.

View kickingvegas's full-sized avatar

Charles Choi kickingvegas

View GitHub Profile
@kickingvegas
kickingvegas / apollo11milestones.py
Created July 19, 2019 06:44
Apollo 11 in Real-TIme Mission Milestones in Local Time Python3 Script
#!/usr/bin/env python3
# Copyright 2019 Charles Choi
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@kickingvegas
kickingvegas / gist:5250677
Created March 27, 2013 00:54
pelican feed settings.
FEED_DOMAIN = u'http://yummymelon.com/devnull'
FEED_ATOM = u'feeds/main.xml'
FEED_ALL_ATOM = u'feeds/all.atom.xml'
@kickingvegas
kickingvegas / parsePosterous.py
Created February 22, 2013 20:30
Python script to parse Posterous API JSON for user posts which generates a Markdown entry with Pelican metadata tags and downloads all media image assets associated with the post. This is functional yet nowhere near production/release level code.
#!/usr/bin/env python
# Copyright 2012 Yummy Melon Software LLC
# Author: Charles Y. Choi
#
import os
import sys
import getopt
import subprocess
import shutil
#!/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