<style>
@-webkit-keyframes move {
0%{
-webkit-clip-path:polygon(0% 0%,0% 100%,0% 100%,0% 0%);
}
100%{
-webkit-clip-path:polygon(0% 0%,0% 100%,100% 100%,100% 0%);
}
}
div{
height: 50px;
line-height: 50px;
text-align: center;
font-size: 2px;
}
.outer{
position: relative;
}
.inner{
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
color: red;
background-color: blue;
-webkit-clip-path:polygon(0% 0%,0% 100%,100% 100%,100% 0%);
animation: move 1s linear 0s;
}
</style>
</head>
<body>
<div class="outer">
1/22
<div class="inner">1/22</div>
</div>幫你把sh下下來了,你存下來試試看,我就估計你git clone的時候也會卡住。哈哈,到時候再找我吧。
main() {
# Use colors, but only if connected to a terminal, and that terminal
# supports them.
if which tput >/dev/null 2>&1; then
ncolors=$(tput colors)
fi
if [ -t 1 ] && [ -n "$ncolors" ] && [ "$ncolors" -ge 8 ]; then
RED="$(tput setaf 1)"
GREEN="$(tput setaf 2)"
YELLOW="$(tput setaf 3)"
BLUE="$(tput setaf 4)"
BOLD="$(tput bold)"
NORMAL="$(tput sgr0)"
else
RED=""
GREEN=""
YELLOW=""
BLUE=""
BOLD=""
NORMAL=""
fi
# Only enable exit-on-error after the non-critical colorization stuff,
# which may fail on systems lacking tput or terminfo
set -e
CHECK_ZSH_INSTALLED=$(grep /zsh$ /etc/shells | wc -l)
if [ ! $CHECK_ZSH_INSTALLED -ge 1 ]; then
printf "${YELLOW}Zsh is not installed!${NORMAL} Please install zsh first!\n"
exit
fi
unset CHECK_ZSH_INSTALLED
if [ ! -n "$ZSH" ]; then
ZSH=~/.oh-my-zsh
fi
if [ -d "$ZSH" ]; then
printf "${YELLOW}You already have Oh My Zsh installed.${NORMAL}\n"
printf "You'll need to remove $ZSH if you want to re-install.\n"
exit
fi
# Prevent the cloned repository from having insecure permissions. Failing to do
# so causes compinit() calls to fail with "command not found: compdef" errors
# for users with insecure umasks (e.g., "002", allowing group writability). Note
# that this will be ignored under Cygwin by default, as Windows ACLs take
# precedence over umasks except for filesystems mounted with option "noacl".
umask g-w,o-w
printf "${BLUE}Cloning Oh My Zsh...${NORMAL}\n"
hash git >/dev/null 2>&1 || {
echo "Error: git is not installed"
exit 1
}
# The Windows (MSYS) Git is not compatible with normal use on cygwin
if [ "$OSTYPE" = cygwin ]; then
if git --version | grep msysgit > /dev/null; then
echo "Error: Windows/MSYS Git is not supported on Cygwin"
echo "Error: Make sure the Cygwin git package is installed and is first on the path"
exit 1
fi
fi
env git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git $ZSH || {
printf "Error: git clone of oh-my-zsh repo failed\n"
exit 1
}
printf "${BLUE}Looking for an existing zsh config...${NORMAL}\n"
if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]; then
printf "${YELLOW}Found ~/.zshrc.${NORMAL} ${GREEN}Backing up to ~/.zshrc.pre-oh-my-zsh${NORMAL}\n";
mv ~/.zshrc ~/.zshrc.pre-oh-my-zsh;
fi
printf "${BLUE}Using the Oh My Zsh template file and adding it to ~/.zshrc${NORMAL}\n"
cp $ZSH/templates/zshrc.zsh-template ~/.zshrc
sed "/^export ZSH=/ c\\
export ZSH=$ZSH
" ~/.zshrc > ~/.zshrc-omztemp
mv -f ~/.zshrc-omztemp ~/.zshrc
# If this user's login shell is not already "zsh", attempt to switch.
TEST_CURRENT_SHELL=$(expr "$SHELL" : '.*/\(.*\)')
if [ "$TEST_CURRENT_SHELL" != "zsh" ]; then
# If this platform provides a "chsh" command (not Cygwin), do it, man!
if hash chsh >/dev/null 2>&1; then
printf "${BLUE}Time to change your default shell to zsh!${NORMAL}\n"
chsh -s $(grep /zsh$ /etc/shells | tail -1)
# Else, suggest the user do so manually.
else
printf "I can't change your shell automatically because this system does not have chsh.\n"
printf "${BLUE}Please manually change your default shell to zsh!${NORMAL}\n"
fi
fi
printf "${GREEN}"
echo ' __ __ '
echo ' ____ / /_ ____ ___ __ __ ____ _____/ /_ '
echo ' / __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \ '
echo '/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / / '
echo '\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/ '
echo ' /____/ ....is now installed!'
echo ''
echo ''
echo 'Please look over the ~/.zshrc file to select plugins, themes, and options.'
echo ''
echo 'p.s. Follow us at https://twitter.com/ohmyzsh.'
echo ''
echo 'p.p.s. Get stickers and t-shirts at https://shop.planetargon.com.'
echo ''
printf "${NORMAL}"
env zsh
}
main
ftp得寫上用戶名密碼吧,比如你用戶名是test,密碼是6666667,那么應(yīng)該是:
<img src="ftp://test:6666667@127.0.0.1/image/a3e5d211-42d4-466a-940d-040e496f9faf.jpg" class="img-thumbnail">
另外不建議用匿名,那個拼寫起來比具名的還長……
https://github.com/chxj1992/k...
項目文檔說的很清楚?。▌e告訴我你看不懂中文)
安裝
$ npm install kline
使用
//在頁面中加入
<div id="kline_container"></div>
//在你需要的文件導(dǎo)入kline模塊
import Kline from 'kline';
//然后實例化(這些參數(shù)需要你配置成自己的數(shù)據(jù)),參數(shù)的含義文檔也有說
var kline = new Kline({
element: "#kline_container",
symbol: "BTC",
symbolName: "比特幣",
type: "poll", // poll/stomp
url: "http://127.0.0.1:8080/mock.json"
});
kline.draw();
打開你的頁面應(yīng)該就可以了
唯一你需要注意的恐怕就是這個url了,你參考人家給的例子里的數(shù)據(jù)
1.segmentfault可以上傳圖片
2.創(chuàng)建好項目后,svn會自動生成鏈接
使用try_files $uri $uri/ /;
location / {
proxy_pass http://localhost:6666;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
client_max_body_size 10m;
try_files $uri $uri/ /;
}“一般不要定義為Static變量”,這是為了防止不安全的SimpleDateFormat實例被意外泄漏導(dǎo)致線程安全性問題。但是泄漏實例或者共享實例的方式有很多,不管是否使用static修飾,只要可變實例被多線程共享即不安全。不要定義為static變量只是一種良好的規(guī)范,但并不能阻止實例被多線程共享。
xesv5.com是你們公司內(nèi)網(wǎng)吧,packagist.xesv5.com域名解析不了找你們網(wǎng)管
看nginx日志,包括access_log和error_log
beforeRouteLeave鉤子
見vue-router文檔
在windows系統(tǒng)下,我更推薦打開ftp,然后通過FreeFileSync這類同步軟件操作。這個軟件比一些單純的FTP軟件更加可視及可控。
如果你問的是環(huán)境變量的話,建議各個系統(tǒng)各自增加環(huán)境變量,名稱一致,比如ENV=test等.js的編譯本身是可以帶環(huán)境參數(shù)的,比如
project_path=$(cd `dirname $0`; pwd)
export NODE_ENV=$ENV
./node_modules/.bin/webpack --config webpack.dll.config -p
./node_modules/.bin/webpack --config webpack.config -p
這里可以將環(huán)境變量直接導(dǎo)出到j(luò)s編譯環(huán)境。
然后就可以在程序愉快的進行判斷了
module.exports = {
API_URL:process.env.NODE_ENV == "production" ? "http://XXXX/api/":"http://AAAA/api/",
IMAGE_URL:process.env.NODE_ENV == "production" ? "http://XXXXX": "http://AAAA"
}php掛了??纯词遣皇莾?nèi)存泄露。
因為 Node 包里的 npm 是 5.6。不知道你怎么升級的,所以不好判定問題在哪兒。
之后不能升級看起來是權(quán)限問題,之前的目錄不能訪問,可以試下 sudo 或者重裝。
最后建議不要用 CNPM,會導(dǎo)致發(fā)包問題。建議在必要的時候(下載 Electron、Phonegap 等)臨時修改系統(tǒng)變量,大部分時候 NPM 也不會太慢。
使用 wss 協(xié)議。
先確定.gitignore 文件中有沒有忽略 public ,然后git add .就可以全部推送
查下有沒有 IP 限制
1.一種方式是在子組件的構(gòu)造函數(shù)里把props用state緩存起來,這樣的話會導(dǎo)致父組件的屬性更新了,子組件沒有更新,這個時候需要結(jié)合componentWillRecieveProps函數(shù)處理
2.把父組件傳給子組件的屬性分開,各個子組件的屬性相互獨立
It is not a bug, it is a feature
.git/hooks/被特意設(shè)計為用戶本地使用的,原因很簡單:
git push,怎么突然就被刪庫了???接受任意代碼插入git標(biāo)準(zhǔn)流程也很危險。所以,如果想分享hooks,需要顯式地放到repo里面,用符號鏈接就可以。然后配置一個安裝腳本(bashscript, makefile, package.json, etc),讓用戶顯式地去安裝。
三元運算嵌套一下就可以了啊,干嘛要computed
{{(item.state==0?'辦理中':(item.state==1?:'已結(jié)辦':'已中止'))}}
北大青鳥APTECH成立于1999年。依托北京大學(xué)優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國IT技能型緊缺人才,是大數(shù)據(jù)專業(yè)的國家
達內(nèi)教育集團成立于2002年,是一家由留學(xué)海歸創(chuàng)辦的高端職業(yè)教育培訓(xùn)機構(gòu),是中國一站式人才培養(yǎng)平臺、一站式人才輸送平臺。2014年4月3日在美國成功上市,融資1
北大課工場是北京大學(xué)校辦產(chǎn)業(yè)為響應(yīng)國家深化產(chǎn)教融合/校企合作的政策,積極推進“中國制造2025”,實現(xiàn)中華民族偉大復(fù)興的升級產(chǎn)業(yè)鏈。利用北京大學(xué)優(yōu)質(zhì)教育資源及背
博為峰,中國職業(yè)人才培訓(xùn)領(lǐng)域的先行者
曾工作于聯(lián)想擔(dān)任系統(tǒng)開發(fā)工程師,曾在博彥科技股份有限公司擔(dān)任項目經(jīng)理從事移動互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍懿科技有限責(zé)任公司從事總經(jīng)理職務(wù)負責(zé)iOS教學(xué)及管理工作。
浪潮集團項目經(jīng)理。精通Java與.NET 技術(shù), 熟練的跨平臺面向?qū)ο箝_發(fā)經(jīng)驗,技術(shù)功底深厚。 授課風(fēng)格 授課風(fēng)格清新自然、條理清晰、主次分明、重點難點突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁制作和網(wǎng)頁游戲開發(fā)。
具有10 年的Java 企業(yè)應(yīng)用開發(fā)經(jīng)驗。曾經(jīng)歷任德國Software AG 技術(shù)顧問,美國Dachieve 系統(tǒng)架構(gòu)師,美國AngelEngineers Inc. 系統(tǒng)架構(gòu)師。