gantt
dateFormat YYYY-MM-DD
title A股项目
section 基础
数据库设计 [元素,桢航] :active, base_db, 2015-04-11, 3d
前端调查选型[子龙,点圈] :active, base_front, 2015-04-11, 3d
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
url = urlparse.urlparse(url)._asdict() | |
query = urlparse.parse_qs(url['query']) | |
query['id'] = 1 | |
url['query'] = urllib.urlencode(query) | |
url = urlparse.urlunparse(url.values()) |
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
//请求成功返回2XX | |
if (statusCode.startWith('2')) { | |
//请求成功,处理业务 | |
} else { | |
//5XX错误,服务器有问题 | |
if (statusCode.startWith('5')) { | |
//响应格式不定,显示网络错误或未知错误给用户 | |
} elseif (statusCode.startWith('4')) { | |
//4XX错误,输入有问题 | |
//4XX错误后端必须保证错误格式 |
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
function testArray(array $array){ | |
sort($array); | |
$max = array_pop($array); | |
$arrLen = count($array); | |
$len = pow(2, $arrLen); | |
for($i = 0; $i < $len; $i++){ | |
$byte = sprintf('%0+'. $arrLen . 'b', $i); | |
$cache = array(); | |
for($j = 0; $j <$arrLen; $j++) { |
PHP:
echo md5(file_get_contents('test.torrent'));
//e699b0e7535cebc1b10de1613d6797fb
Python:
Convert any Gist Markdown file in to a slide show powered by Reveal.js
https://AlloVince.github.com/gimare/?YOUR_GIST_ID
OlderNewer