Skip to content

Instantly share code, notes, and snippets.

View piaoapiao's full-sized avatar

piaoapiao

  • china shanghai
View GitHub Profile
@piaoapiao
piaoapiao / gist:3897886
Created October 16, 2012 07:51
leak example
NSURL *tempURL = [[NSURL alloc] initWithString:hotelImage];
self.hotelImg = tempURL;
TT_RELEASE_SAFELY(tempURL);
// self.hotelImg = [NSURL URLWithString:hotelImage];
找到原因了,大伙看代码。。。。,正确的dealloc方法,却碰到这样蛋疼的写法。。。 感觉是过度防卫,。。。
@piaoapiao
piaoapiao / gist:3891184
Created October 15, 2012 07:22
asihttp https error deal
https://github.com/ignaval/asi-http-request/commit/c782abbeb204156d30ecbb902915d1eaf9b10f9e
@piaoapiao
piaoapiao / gist:3887241
Created October 14, 2012 03:59
git use
mac下git与github简单使用
2011-09-14 09:28:17| 分类: 默认分类 |字号 订阅
准备工作:
下载安装git客户端 http://code.google.com/p/git-osx-installer/downloads/list?can=3
注册github账号 https://github.com/ -->Pricing and Signup -->Create a free account
创建ssh:
在local打开terminal:
$cd ~/.ssh 检查是否已经存在ssh
如果存在,先将已有的ssh备份,或者将新建的ssh生成到另外的目录下
@piaoapiao
piaoapiao / gist:3800719
Created September 28, 2012 16:08
资源
http://mac.pcbeta.com/
http://mac.pcbeta.com/thread-106993-1-1.html
@piaoapiao
piaoapiao / gist:3792247
Created September 27, 2012 05:01
apple open source code
http://www.opensource.apple.com/release/mac-os-x-105/
http://llvm.org/
http://lldb.llvm.org/
@piaoapiao
piaoapiao / gist:3786469
Created September 26, 2012 06:47
svn 冲突解决
http://www.logicaltrinkets.com/wordpress/?p=178
@piaoapiao
piaoapiao / gist:3760036
Created September 21, 2012 06:34
net library
http://code.google.com/p/gtm-http-fetcher/
http://stackoverflow.com/questions/8317662/asihttprequest-request-sent-twice?answertab=active#tab-top
request.shouldAttemptPersistentConnection = NO;
@piaoapiao
piaoapiao / gist:3753408
Created September 20, 2012 01:16
ASIHttpRequest Quene
quene = [[ASINetworkQueue alloc] init];
//quene.delegate = self;
ASIHTTPRequest *request =[[ASIHTTPRequest alloc] initWithURL:[[[NSURL alloc] initWithString:@"http://www.baidu.com"]autorelease]];
[request setQueue:quene];
request.delegate = self;
ASIHTTPRequest *request2 =[[ASIHTTPRequest alloc] initWithURL:[[[NSURL alloc] initWithString:@"http://www.google.com"]autorelease]];
request2.delegate = self;
[quene addOperation:request];
[quene addOperation:request2];
@piaoapiao
piaoapiao / gist:3736159
Created September 17, 2012 08:23
真机调适
http://www.cnblogs.com/likwo/archive/2012/04/16/2451577.html
@piaoapiao
piaoapiao / gist:3711561
Created September 13, 2012 02:59
动画开始时机 在block
http://stackoverflow.com/questions/1808320/iphone-setanimationwillstartselector-setanimationdidstopselector-not-working-a