This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = wondger | |
email = [email protected] | |
[alias] | |
st = status | |
co = checkout | |
cob = checkout -b | |
ca = commit --amend | |
last = log --graph -1 HEAD | |
aa = add . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function parse_git_branch () { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[\1]/' | |
} | |
#PS1='\u@\w $ ' | |
PS1="\[\e[32;22m\]\u\[\e[35;22m\]@\[\e[36;22m\]\w\[\e[36;1m\]\[\e[0;33m\]\$(parse_git_branch)\[\e[0m\] $ \[\e[0m\]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function foreRequire(module) { | |
delete require.cache[path.resolve(module)]; | |
return require(module); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var utils = { | |
isFile: function(path) { | |
var stat = fs.statSync(path); | |
return stat ? stat.isFile() : undefined; | |
}, | |
isDir: function(path) { | |
var stat = fs.statSync(path); | |
return stat ? stat.isDirectory() : undefined; | |
}, | |
readDir: function(dir, callback) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo auto update start! | |
@echo off&setlocal enabledelayedexpansion | |
:loop | |
@ping 127.0.0.1 -n 600 > nul | |
"C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:update /path:"d:/work/FETest/code/" /closeonend:3 | |
@echo [%DATE% %TIME%] update success | |
goto loop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var s1 = require('./site1/app.js') | |
,s2 = require('./site2/app.js') | |
,s3 = require('./site3/app.js') | |
,s4 = require('./site4/app.js') | |
,s5 = require('./site5/app.js') | |
,s6 = require('./site6/app.js') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @name:SplitURI.js | |
* @description:分割URL | |
* 最小分割单元为12个字符长度,UTF8编码中可能存在4个字节编码的字符 | |
* UTF8各字节字符编码最大值: | |
* 单字节字符:0-127 | |
* 其他字节字符末字节:128-191 | |
* 双字节字符首字节:192-223 | |
* 三字节字符首字节:224-239 | |
* 四字节字符首字节:240-247 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var guid = (function(){ | |
function S4(){return(((1+Math.random())*65536)|0).toString(16).substring(1)} | |
return function guid(){return(S4()+S4()+"-"+S4()+"-"+S4()+"-"+S4()+"-"+S4()+S4()+S4()).toUpperCase()} | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @name:JSON.js | |
* @description: | |
* @author:[email protected] | |
* @date:2012-05-02 | |
* @param: | |
* @todo: | |
* @changelog: | |
*/ | |
window.JSON = window.JSON || { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @name:LevenshteinDistance.js | |
* @description: | |
* @author:[email protected] | |
* @date:2012-04-17 | |
* @param: | |
* @todo: | |
* @changelog: | |
*/ | |
var LevenshteinDistance = { |