git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/jianyeruan80/ioincapp.git / git@github.com:jianyeruan80/ioincapp.git
git push -u origin master
echo # ionicdemo1 >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/jianyeruan80/ionicdemo1.git
git push -u origin master
git remote add origin https://github.com/jianyeruan80/ioincapp.git
git push -u origin master
git push -u origin master
git remote add name ssh://git@bitbucket.org/jianyeruan/reponame.git
git remote set-url origin git@github.com:jianyeruan80/rxy01.git
git push -u origin master
git remote rm origin
git remote add origin git@github.com:jianyeruan80/ionicdemo.git
git init
git add . | git add -A
git commit -m "message"
1,mkdir test006
2,cd test006 , git init
3,echo "our first git repository" >> file
4, git add file
5,git commit -m "the first file to commit" file
6, git remote add origin ssh://software@172.16.0.30/~/yafeng/.git
7,git push origin master
git remote show origin
git remote
git remote add origin ssh://software@172.16.0.30/~/yafeng/.g
var cheerio = require(‘cheerio‘)
var iconv = require(‘iconv-lite‘)
var headers = {
‘User-Agent‘: ‘Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.65 Safari/537.36‘
}
function request (url, callback) {
var options = {
url: url,
encoding: null,
//代理服务器
//proxy: ‘http://xxx.xxx.xxx.xxx:8888‘,
headers: headers
}
originRequest(options, callback)
}
var url = ‘http://www.163.com‘
request(url, function (err, res, body) {
var html = iconv.decode(body, ‘gb2312‘)
var $ = cheerio.load(html, {decodeEntities: false})
console.log($(‘h1‘).text())
console.log($(‘h1‘).html())
})
async.series({
one: function (done) {
//处理逻辑
done(null, ‘one‘);
}, function (error, result) {
console.log(‘one:‘, result.one);
console.log(‘two:‘, result.two);
console.log(‘three:‘, result.three);
console.log(‘four:‘, result.four);
console.timeEnd(‘series‘);
})
原文:http://www.cnblogs.com/jayruan/p/5123126.html