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
#!/usr/bin/env bash | |
for x | |
do | |
filename=$(echo $x|sed -e "s/\.wiki$/.md/") | |
sed -f ex $x > $filename | |
done |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\*\shell\cmdhere] | |
@="Cmd&Here" | |
[HKEY_CLASSES_ROOT\*\shell\cmdhere\command] | |
@="cmd.exe /c start cmd.exe /k pushd \"%L\\..\"" | |
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
" http://usevim.com/2013/01/04/vim101-jumping/ | |
function! InitJavaScript() | |
setl suffixesadd+=.js | |
setl isfname+=@-@ | |
let node_modules = finddir('node_modules', expand('%:p:h') . ';') | |
exec "setl path+=". node_modules | |
"let project_root=findfile('package.json', expand('%:p:h') . ';') | |
"exec "setl path+=". fnamemodify(project_root, ':p:h') . "/node_modules" | |
endfunction |
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 get(){ | |
var m = location.hash.match(/#(.+?)(?:\/p([1-9][0-9]*)|$)/); | |
var k,p; | |
if(m){ | |
k = m[1] || ""; | |
p = m[2] || 1; | |
}else{ | |
var m=location.search.match(/[?&]q=([^&]*)(?:&|$)/); | |
k = m && m[1] ? m[1] : ""; | |
var m=location.search.match(/[?&]p=([^&]*)(?:&|$)/); |
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 TypeLib = new ActiveXObject("Scriptlet.TypeLib"), | |
guid = TypeLib.Guid; | |
document.write(guid); |
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
set imdisable | |
set imactivatekey=D-space | |
set imsearch=0 | |
set imcmdline=0 | |
autocmd! InsertLeave * set imdisable|set iminsert=0 | |
autocmd! InsertEnter * set noimdisable|set iminsert=2 | |
"inoremap <ESC> <ESC>:set iminsert=0<CR> |
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 $ = require("$"); | |
var userName = "用户名"; | |
var password = "密码"; | |
// 允许连续声明多个变量。 | |
var name, age, type; | |
// 靠近变量使用的地方进行变量声明。 |
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
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<!-- uitpl: trackerTime.vm(header.vm) --> | |
<script> | |
window._to = {start: new Date()}; | |
</script> | |
<script> | |
// monitor.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
--- .m2/settings.xml 2012-08-07 17:56:02.000000000 +0800 | |
+++ .m3/settings.xml 2013-02-27 19:43:16.000000000 +0800 | |
@@ -37,8 +37,8 @@ | |
</server> | |
<server> | |
<id>arale.assets.dev.id</id> | |
- <username>dev</username> | |
- <password>dev123</password> | |
+ <username>admin</username> | |
+ <password>alipaydev</password> |
NewerOlder