You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'
.
Consider something like:
git init # 初始化本地git仓库(创建新仓库) | |
git config --global user.name "xxx" # 配置用户名 | |
git config --global user.email "[email protected]" # 配置邮件 | |
git config --global color.ui true # git status等命令自动着色 | |
git config --global color.status auto | |
git config --global color.diff auto | |
git config --global color.branch auto | |
git config --global color.interactive auto | |
git config --global --unset http.proxy # remove proxy configuration on git | |
git clone git+ssh://[email protected]/VT.git # clone远程仓库 |
vagrant@homestead:~$ sudo apt-get update | |
vagrant@homestead:~$ git clone -b php7 https://github.com/phpredis/phpredis.git | |
vagrant@homestead:~$ sudo mv phpredis/ /etc/ | |
vagrant@homestead:~$ cd /etc/phpredis | |
vagrant@homestead:/etc/phpredis$ phpize | |
vagrant@homestead:/etc/phpredis$ ./configure | |
vagrant@homestead:/etc/phpredis$ make && make install | |
# Note This is an Extension You Need to Enable to Make it Work in Php 7 | |
# This First Command Will Allow You To Call PHPREDIS Facade in Browser |
// Add percentage of white to a color | |
@function tint($color, $percent){ | |
@return mix(white, $color, $percent); | |
} | |
// Add percentage of black to a color | |
@function shade($color, $percent){ | |
@return mix(black, $color, $percent); | |
} |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
# 网络 | |
# 查看本地公网 IP | |
curl ifconfig.me | |
dig 1024.io | |
dig -x 104.155.233.156 | |
# 并发测试 | |
ab -n 1000 -c 1000 http://www.meizu.com/ | |
# 全站抓取 | |
wget -r -p -np -k http://www.meizu.com/es/ |
When I developed an app for ios by phonegap, I had a trouble in changing the <input> input cursor color. | |
but now, there is a solution for it: | |
--------------- | |
<style> | |
input { | |
color: rgb(60, 0, 248); /* change [input cursor color] by this*/ | |
text-shadow: 0px 0px 0px #D60B0B; /* change [input font] by this*/ | |
-webkit-text-fill-color: transparent; |
function parseURL(url) { | |
var parser = document.createElement('a'), | |
searchObject = {}, | |
queries, split, i; | |
// Let the browser do the work | |
parser.href = url; | |
// Convert query string to object | |
queries = parser.search.replace(/^\?/, '').split('&'); | |
for( i = 0; i < queries.length; i++ ) { | |
split = queries[i].split('='); |