hello_world.py
"""Simple demo of using Flask with aiohttp via aiohttp-wsgi's
WSGIHandler.
"""
This file contains hidden or 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
project_path: ahh | |
worspace_name: ahh | |
log_path: builds/log/ | |
builds_path: builds | |
last_build_commit_file: ahh | |
last_try_build_commit_file: ahh | |
git_pull_before_build: true | |
send_ding_msg_after_build: |
This file contains hidden or 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
NSMutableURLRequest *req = [[AFHTTPRequestSerializer serializer] requestWithMethod:@"POST" URLString:@"https://example.com" parameters:@{} error:nil]; | |
NSString *body = @"..."; | |
req.HTTPBody = [body dataUsingEncoding:NSUTF8StringEncoding]; | |
AFHTTPSessionManager *manager = [[AFHTTPSessionManager alloc] initWithSessionConfiguration:configuration]; | |
NSURLSessionDataTask *task = [manager dataTaskWithRequest:req completionHandler:^(NSURLResponse * _Nonnull response, id _Nullable responseObject, NSError * _Nullable error) { | |
}]; | |
[task resume]; |
This file contains hidden or 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
#!/bin/bash | |
# | |
# 通过对比 ping 响应时间,找到本机最快的上传ip | |
# [email protected] | |
# | |
# 使用方法: | |
# sh -c "$(curl -sSL https://gist.githubusercontent.com/trawor/5dda140dee86836b8e60/raw/turbo-qiniu.sh)" | |
echo "# 这个脚本理论上可以帮你获取任意域名的最快速的IP" | |
echo "# 获取IP列表的服务由 17ce.com 提供, 非常感谢有这么好的免费服务!" |
This file contains hidden or 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 str = '血红蛋白(123,g/L) 血红蛋白(1209803,g/L) 血红蛋白(19821,g/L)'; | |
var regexp = /\((\d+)/g; | |
while (true) { | |
var r = regexp.exec(str); | |
if (r != null) { | |
console.log(r[1]); | |
} | |
else { | |
break; | |
} |
I hereby claim:
- I am EkkoG on github.
- I am cielpy (https://keybase.io/cielpy) on keybase.
- I have a public key whose fingerprint is 9297 A80C AFDD 5466 5A0F 6349 E471 9567 F093 EC19
To claim this, I am signing this object:
This file contains hidden or 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
#!/bin/sh | |
NAME=shadowsocks | |
SERVERS=servers | |
dns="119.29.29.29" | |
uci_set_by_type() { | |
uci set $NAME.$1.$2=$3 2>/dev/null | |
} |
This file contains hidden or 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
#!/bin/bash | |
usage() | |
{ | |
echo "usage: 使用命令行提交 Merge Request,参数如下: | |
-p 源工程 ID | |
-s 源工程分支 | |
-d 目标工程 ID | |
-t 目标工程分支 | |
-u 用户 ID |
This file contains hidden or 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
#!/bin/bash | |
usage() | |
{ | |
echo "git commit,可使用 -d 附加信息类型,如: | |
-d add [添加] | |
-d mod [修改] | |
-d fix [修复]" 1>&2; | |
exit 1; | |
} |