Skip to content

Instantly share code, notes, and snippets.

http://www.raywenderlich.com/76020/using-uigesturerecognizer-with-swift-tutorial
https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIView_class/index.html#//apple_ref/occ/instp/UIView/exclusiveTouch
http://www.raywenderlich.com/76200/basic-uiview-animation-swift-tutorial
http://www.raywenderlich.com/50317/beginning-auto-layout-tutorial-in-ios-7-part-1
@rexpie
rexpie / crop hints
Created September 15, 2014 10:18
crop
self.keepingCropAspectRatio
self.cropView.cropAspectRatio = 3.0f / 5.0f;
[root@iZ23rkkygsnZ conf]# iptables -A INPUT -i eth1 -p tcp --dport 80 -j ACCEPT
[root@iZ23rkkygsnZ conf]# iptables -A INPUT -i eth1 -p tcp --dport 8080 -j ACCEPT
[root@iZ23rkkygsnZ conf]# iptables -A PREROUTING -t nat -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 8080
[root@iZ23rkkygsnZ conf]# service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
[root@iZ23rkkygsnZ conf]# service iptables restart
iptables: Setting chains to policy ACCEPT: nat filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
iptables: Applying firewall rules: [ OK ]
chubby:memcached-1.4.21 chenjing$ sudo ./memcached -p 11211 -m 64 -u root -d
@rexpie
rexpie / weeklyReport150731.md
Last active August 29, 2015 14:26
weeklyReport150731.md
@rexpie
rexpie / Scratch2 Extension Report
Last active August 29, 2015 14:26
Scratch2 Extension Report
> Written with [StackEdit](https://stackedit.io/).
过往项目总结
---------------------------------
> 原文档请参考DFRobotScratch Kit项目报告