##Poker II 机械键盘 Mac 键位改造
Refer】:Segmentfault.com
###Step 1. Pocker II 开关设置
##Poker II 机械键盘 Mac 键位改造
Refer】:Segmentfault.com
###Step 1. Pocker II 开关设置
#!/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] ' |
// 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 |
<?php | |
/** | |
* 获取浮点数后的有效小数位数 | |
*/ | |
function getFloatLenAfterDot($numbric) | |
{ | |
echo "Orinial: " . $numbric . "\n"; | |
$arr = explode(".", $numbric); |
<?php | |
/** | |
* Rang = [$start, $end] | |
*/ | |
function gen_rand_serial($count, $start, $end) | |
{ | |
$R = $end - $start + 1; | |
$count = min($R, $count); | |
if ($R == $count) { |
<?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> |
<?xml version="1.0" ecoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" | |
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>jopper.proxy.polipo</string> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>KeepAlive</key> |
<?php | |
/** | |
* @desc Shell execuatable php script | |
* @author rakkang | |
* @date 2015-12-30 | |
*/ | |
const G_DESCRIPTION = 'Sample script.'; | |
//!!!! DON'T CHANGE VARIABLE NAME |
#!/bin/sh | |
# 配置你喜欢的diff程序路径 | |
DIFF="vimdiff" | |
# SVN diff命令会传入两个文件的参数 | |
LEFT=${6} | |
RIGHT=${7} | |
# 拼接成diff命令所需要的命令格式 | |
$DIFF $LEFT $RIGHT |
// UIView 颜色渐变背景 | |
CAGradientLayer *gradient = [CAGradientLayer layer]; | |
gradient.frame = view.frame; | |
gradient.colors = [NSArray arrayWithObjects: | |
(id)kUIColorFromRGB(0x000000, 0.8).CGColor, | |
(id)kUIColorFromRGB(0x000000, 0.5).CGColor, | |
(id)kUIColorFromRGB(0x000000, 0.3).CGColor, | |
(id)kUIColorFromRGB(0x000000, 0.2).CGColor, | |
(id)kUIColorFromRGB(0x000000, 0.005).CGColor, nil]; |