- master 为主分支,要保护它的稳定性,随时可用来上线。
- 我们不应该直接在 master 分支上直接提交代码,而是从其它分支的合并。
- develop 为开发分支,一般包含正在开发的所有新特性,用于测试环境部署和测试。
- 我们不应该直接在 develop 分支上直接提交代码,也不应该把未经测试的代码合并进来,应该尽量保持测试环境干净可用。
- 当 develop 太“脏”以至于不能继续测试之后,可以考虑重新从 master 拉取一次。
$tmp_name = "";
$tmp_size = 0;
foreach ($_FILES as $v) {
$tmp_name = $v["tmp_name"];
$tmp_size = $v["size"];
}
$destination = "your_post_api_here";
if (class_exists('\CURLFile')) {
| /usr/bin/plutil -convert xml1 -o - ~/Library/Safari/Bookmarks.plist | grep -E -o '<string>http[s]{0,1}://.*</string>' | grep -v icloud | sed -E 's/<\/{0,1}string>//g'|xargs open -a Safari |
| const constructor = function(a, b) { | |
| this.a = a; | |
| this.b = b; | |
| }; |
| unbind C-b | |
| set -g prefix C-s | |
| # bind a reload key | |
| bind R source-file ~/.tmux.conf \; display-message "Config reloaded.." | |
| # Use vim keybindings in copy mode | |
| setw -g mode-keys vi |
| "" See https://github.com/flipxfx/sVim | |
| let fullpagescrollpercent = 90 | |
| let hintcharacters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
| map "ctrl+f" scrollFullPageDown | |
| map "ctrl+b" scrollFullPageUp | |
| map "ctrl+d" scrollPageDown | |
| map "ctrl+u" scrollPageUp |
| set nonumber | |
| set showcmd | |
| set fencs=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1 | |
| set expandtab | |
| set tabstop=8 | |
| set shiftwidth=4 | |
| set softtabstop=4 | |
| set autoindent |
| ## '#'开头为注释内容, 选项都有相应的注释说明, 根据需要修改 ## | |
| ## 被注释的选项填写的是默认值, 建议在需要修改时再取消注释 ## | |
| ## 初始化相关 | |
| # mkdir ~/.aria2 | |
| # touch ~/.aria2/aria2.session | |
| # curl -O "https://gist.githubusercontent.com/hit1024/db49888f2dd198eee8c35dbbe3e00255/raw/f9f35caff9c59fc38eafda34cd189158301ec4c7/aria2.conf" ~/.aria2/aria2.conf | |
| ## 文件保存相关 ## |
| // 将设置放入此文件中以覆盖默认设置 | |
| { | |
| "files.eol": "\n", | |
| "editor.wordWrap": "on", | |
| "workbench.startupEditor": "newUntitledFile", | |
| "git.autofetch": false, | |
| "window.zoomLevel": 0, | |
| "python.pythonPath": "python2" | |
| } |