##Poker II 机械键盘 Mac 键位改造
Refer】:Segmentfault.com
###Step 1. Pocker II 开关设置
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>fileTypes</key> | |
| <array> | |
| <string>flowchart</string> | |
| </array> | |
| <key>foldingStartMarker</key> | |
| <string>{</string> |
| <?php | |
| /** | |
| * Rang = [$start, $end] | |
| */ | |
| function gen_rand_serial($count, $start, $end) | |
| { | |
| $R = $end - $start + 1; | |
| $count = min($R, $count); | |
| if ($R == $count) { |
| <?php | |
| /** | |
| * 获取浮点数后的有效小数位数 | |
| */ | |
| function getFloatLenAfterDot($numbric) | |
| { | |
| echo "Orinial: " . $numbric . "\n"; | |
| $arr = explode(".", $numbric); |
| // Refer: http://swifter.tips/condition-compile/ | |
| // 使用之前需要在项目的 Build Settings 中,找到 Swift Compiler - Custom Flags,并在其中的 Other Swift Flags 加上 -D DEBUG | |
| class Utils { | |
| /** | |
| Control your log an DEBUG and RELEASE | |
| - parameter anyObj: any info | |
| - parameter file: Logging file name | |
| - parameter fun: Logging function name |
| #!/usr/bin/python | |
| # coding:utf-8 | |
| import sys | |
| argv_len = len(sys.argv) | |
| def help(): | |
| print 'Filter svnlog by user or date! ' | |
| print 'USEAGE: svnlog [ARGs] ' |
##Poker II 机械键盘 Mac 键位改造
Refer】:Segmentfault.com
###Step 1. Pocker II 开关设置