- http://kitakatsu.info/2011/06/28/563.html
- http://kitakatsu.info/2011/06/28/572.html
- http://kitakatsu.info/2011/06/29/596.html
- http://kitakatsu.info/2011/06/29/616.html
$ java -version
| ######################################################################## | |
| # https://github.com/mxcl/homebrew/wiki/Installation | |
| ######################################################################## | |
| $ /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)" | |
| $ brew install git | |
| ==> Downloading http://git-core.googlecode.com/files/git-1.7.7.4.tar.gz | |
| ######################################################################## 100.0% | |
| ==> make prefix=/usr/local/Cellar/git/1.7.7.4 install | |
| ==> Downloading http://git-core.googlecode.com/files/git-manpages-1.7.7.4.tar.gz | |
| ######################################################################## 100.0% |
| #import <Foundation/Foundation.h> | |
| @interface YouTubeCell : UITableViewCell { | |
| // YouTube | |
| UIWebView* youTubeView_; | |
| NSString* youTubeHTML_; | |
| } | |
| @end |
| # | |
| # 毎回忘れるのでメモ | |
| # http://ameblo.jp/tokotokosoftware/entry-10791578218.html | |
| # http://iphone.longearth.net/2009/03/09/【iphone】メモリ不足時のシミュレートとデバッグ/ | |
| # http://d.hatena.ne.jp/Kazzz/20120109/p1 | |
| # XCode4:「Product -> Edit Scheme」の「Arguments」タブの「Environment Variables」に追加 | |
| # | |
| NSDebugEnabled = YES | |
| NSZombieEnabled = YES |
| # | |
| # CocoaPods - An Objective-C library dependency manager | |
| # https://github.com/CocoaPods/CocoaPods | |
| # | |
| # sample application | |
| # https://github.com/matsuda/CocoaPodsSample | |
| # | |
| # refs | |
| # http://iphone-dev.g.hatena.ne.jp/laiso/20111117/1321437909 | |
| # |
| #import <Foundation/Foundation.h> | |
| CGFloat iOSVersion(); | |
| BOOL isIOSVersionOver(float v); | |
| BOOL isIOSVersionOver_3_2(); | |
| BOOL isIOSVersionOver_5_0(); |
| /* | |
| ScalableViewController.h | |
| */ | |
| @interface ScalableViewController : UIViewController | |
| @property (nonatomic, retain) UIView *scaledView; | |
| @end | |
| /* | |
| ScalableViewController.h |
| - (CGPoint)offsetOfCell:(UITableViewCell *)cell | |
| { | |
| // tableViewがどれだけスクロールされたか | |
| CGPoint offset = self.tableView.contentOffset; | |
| CGPoint point = cell.frame.origin; | |
| point.x -= offset.x; | |
| point.y -= offset.y; | |
| return point; | |
| } |
| static UIColor * randomColorWithRGB() { | |
| srand(time(NULL)); | |
| int rgb = random() % 3; | |
| int code = random() % 10; | |
| UIColor *color; | |
| switch (rgb) { | |
| case 0: | |
| color = [UIColor colorWithRed:0.1 * code green:1.0 blue:1.0 alpha:1.0]; | |
| break; |