This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @fileOverview http请求的工具操作集,包含请求超时时间设置 | |
* @module tool/httpHelper | |
*/ | |
var http = require('http'); | |
var https = require('https'); | |
var qs = require('querystring'); | |
var iconv = require('iconv-lite'); | |
var BufferHelper = require('bufferhelper'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myTravel = `{ | |
"data": [ | |
{ | |
"joinMax": "10", | |
"clicks": 2393, | |
"content": "", | |
"travelPic": "http://ac-afkydcqq.clouddn.com/f7a0443a710ceded28ef.jpg", | |
"endTime": { | |
"__type": "Date", | |
"iso": "2017-03-28T05:41:00.000Z" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var service = function(){ | |
console.log('task start...'); | |
} | |
var test = (function(){ | |
var time_start; | |
return { | |
before: function(){ | |
time_start = (+new Date()); | |
console.log('cunting...'); | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tempDataArray2 = [ | |
"1|112|223|119|23", | |
"2|212|123|119|23", | |
"1|212|223|119|23", | |
"3|2|223|119|23", | |
"3|1|2233|119|25", | |
"3|1|2233|119|23", | |
"3|1|223|119|23", | |
]; |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"