首先不同网站,当然可以使用同一个邮箱,比如我的github,gitlab,bitbucket的账号都是monkeysuzie[at]gmail.com 这时候不用担心密钥的问题,因为这些网站push pull 认证的唯一性的是邮箱 比如我的windows 上 2个账号一个gitlab 一个github (用的都是id_rsa)
host github
hostname github.com
Port 22
host gitlab.zjut.com
/*上,下边框*/ | |
.tBor:before, | |
.bBor:after{ | |
position:absolute; | |
content: ""; | |
height:1px; | |
background:red; | |
left:0; | |
right:0; | |
} |
set nocompatible " 设置不兼容VI | |
filetype off " required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
Bundle 'bling/vim-airline' | |
"Bundle 'kien/ctrlp.vim' | |
"Bundle 'scrooloose/nerdtree' |
function doesConnectionExist(file) { | |
var xhr = new XMLHttpRequest(); | |
var randomNum = Math.round(Math.random() * 10000); | |
xhr.open('HEAD', file + "?rand=" + randomNum, false); | |
try { | |
xhr.send(); | |
if (xhr.status >= 200 && xhr.status < 304) { |
// 取自 UnderscoreJS 实用框架 | |
function debounce(func, wait, immediate) { | |
var timeout; | |
return function() { | |
var context = this, args = arguments; | |
var later = function() { | |
timeout = null; | |
if (!immediate) func.apply(context, args); | |
}; | |
var callNow = immediate && !timeout; |
<center> | |
不建议用了。 | |
text-align:center | |
在父容器里水平居中 inline 文字,或 inline 元素 |
defaults write com.apple.finder AppleShowAllFiles TRUE | |
killall Finder | |
把 TRUE 换曾 FALSE 就可以关闭显示隐藏文件。 |
打开“终端”(应用程序->实用工具),输入以下两条命令: | |
defaults write com.apple.finder _FXShowPosixPathInTitle -bool TRUE;killall Finder |