- 配置文件: %HOMEPATH%/_vimrc
- 插件目录: %HOMEPATH%/vimfiles/
This file contains hidden or 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
## 更新外部配置 | |
p.version('0.0.1') | |
.option('-p, --port <n>', 'redis server port') | |
.option('-h, --host [VALUE]', 'redis server host') | |
.parse(process.argv) | |
p.port = parseInt(p.port) || 6379 | |
p.host = p.host || "localhost" | |
kue = require 'kue' |
This file contains hidden or 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
git config --global alias.co checkout | |
git config --global alias.br branch | |
git config --global alias.ci commit | |
git config --global alias.st status | |
git config --global alias.unstage 'reset HEAD --' | |
git config --global alias.last 'log -1 HEAD' | |
git config --global alias.df 'diff' | |
This file contains hidden or 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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
This file contains hidden or 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
语言: | |
CPP = 'cpp' | |
LUA = 'lua' | |
JS = 'js' | |
OS: | |
ANDROID = 'android' | |
IOS = 'ios' | |
MAC = 'mac' |
This file contains hidden or 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 hashCode(str) { // java String#hashCode | |
var hash = 0; | |
for (var i = 0; i < str.length; i++) { | |
hash = str.charCodeAt(i) + ((hash << 5) - hash); | |
} | |
return hash; | |
} | |
function intToARGB(i){ | |
var resualt = "" |
This file contains hidden or 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 showcmd " display incomplete commands | |
set showmode " display the current editing mode | |
"set cursorcolumn " 高亮当前光标所在列 | |
set cursorline " 高亮当前光标所在行 | |
"hi CursorColumn cterm=NONE ctermbg=darkred ctermfg=white guibg=NONE guifg=NONE | |
" get rid of the F1 help | |
inoremap <F1> <ESC> | |
nnoremap <F1> <ESC> |
This file contains hidden or 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
################################# | |
# Snippets for the Lua language # | |
################################# | |
##### quick-x support : start #### | |
snippet device.showActivityIndicator "quickx: 显示活动指示器" | |
device.showActivityIndicator() | |
snippet device.hideActivityIndicator() "quickx: 隐藏正在显示的活动指示器" |
This file contains hidden or 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 string.fromhex(str) | |
return (str:gsub('..', function (cc) | |
return string.char(tonumber(cc, 16)) | |
end)) | |
end | |
function string.tohex(str) | |
return (str:gsub('.', function (c) | |
return string.format('%02X', string.byte(c)) | |
end)) |
This file contains hidden or 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
// Author Brad P. Taylor ([email protected]) license MIT | |
///<reference path="../../../../bower_components/phaser-official/build/phaser.d.ts"/> | |
///<reference path="./prefab.ts"/> | |
// TODO - support PIXI.Texture/BaseTexture/Atlas (if texture then use inner texture) | |
// TODO - error checking ? possibly correct bad snap requests (not multiple) | |
module bpt { | |
export class Scale9 extends Phaser.Group { |
OlderNewer