frp
brew install go
export GOPATH="/Users/yudun1989/go"
go get golang.org/x/mobile/cmd/gomobile
killed: 9
https://godoc.org/golang.org/x/mobile/app
加上了lifecycle.Event之类的,然后把frpc里面的main的逻辑改到了这个里面gomobile build -target=ios -bundleid=net.koseidon.frpc -o …
最近需要研究一款App.之前的一些命令和使用方式都忘记了,重新记录一下。
从http://www.cycript.org/
安装之后,发现会报错
py3) ➜ ~ cycript
dyld: Library not loaded: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/libruby.2.0.0.dylib
Referenced from: /usr/local/bin//Cycript.lib/cycript-apl
Reason: image not found
[1] 1152 abort cycript
看了下当前的ruby版本(ruby …
Extension的使用方法
extension Int {
func repeats(word:String)->[String]{
return [String](repeating: word, count: self)
}
}
extension Array where Element: Comparable {
func linearSearch(forElement key:Element) -> Bool {
for number in self {
if number == key {
return true
}
}
return false
}
}
struct Dog {
var name:String
}
extension Dog:Hashable {
var …
分析一些代码:
case1:
- (void)viewDidLoad {
for (int i=0; i<1000000000; i++) {
NSObject *o = [[NSObject alloc] init];
}
}
case2:
- (void)viewDidLoad {
for (int i=0; i<1000000000; i++) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc]init];
NSObject *o = [[NSObject alloc] init];
[pool drain];
}
}
case3:
- (void)viewDidLoad {
for (int i=0; i<1000000000; i …