- 先 Fork 感兴趣项目,即
dmlc/gluon-cv
- Clone 到本地,
git clone git@github.com:YimianDai/gluon-cv.git
- 添加源项目
dmlc/gluon-cv
作为upstream
源,git remote add upstream https://github.com/dmlc/gluon-cv.git
- 禁止直接向
upstream
源 push,因为我们不是 dmlc 的人,没有 push 的权限,要提交代码必须通过 Pull Request,git remote set-url --push upstream no_push
- 创建并切换到本地的新分支
fixMixSoftmaxCrossEntropyLoss
,git checkout -b fixMixSoftmaxCrossEntropyLoss
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
#!/usr/bin/env bash | |
flag="to" | |
while getopts ":l:r:u:h:f:" opt; do | |
case $opt in | |
l) local="$OPTARG" | |
;; | |
r) remote="$OPTARG" | |
;; |
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
#!/usr/bin/python3 | |
from functools import partial | |
def colors16(): | |
for bold in [0, 1]: | |
for i in range(30, 38): | |
for j in range(40, 48): | |
print(f'\x1b[{bold};{i};{j}m {bold};{i};{j} |\x1b[0m', end='') | |
print() |
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
➜ ab ./test.sh | |
2020-05-16 13:52:52 | |
Query DSL: { | |
"query": { | |
"term": { | |
"acctId": "A00000000000" | |
} | |
}, | |
"size": 0 | |
} |
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
#!/usr/bin/env bash | |
date '+%Y-%m-%d %H:%M:%S' | |
# 打印查询DSL | |
echo -n 'Query DSL: ' | |
cat query.json | |
echo '' | |
# 默认并发数 | |
cocurrency=60 |
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
{ | |
"acct-trades-bills": { | |
"mappings": { | |
"dynamic_templates": [ | |
{ | |
"long_fields": { | |
"match": "*", | |
"match_mapping_type": "long", | |
"mapping": { | |
"fields": { |
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
{ | |
"acct-trades-bills": { | |
"mappings": { | |
"_default_": { | |
"dynamic_templates": [ | |
{ | |
"string_fields": { | |
"mapping": { | |
"index": "not_analyzed", | |
"type": "string", |
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
*://*.voidcc.com/* | |
*://*.codeday.me/* | |
*://*.voidcn.com/* | |
*://*.codenong.com/* | |
*://*.helplib.com/* | |
*://*.jishuwen.com/* | |
*://*.csdn.net/* | |
*://stackoverrun.com/* | |
*://*.itranslater.com/* | |
*://365airsoft.com/* |
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
#!/usr/bin/env python | |
import datetime | |
import time | |
import urllib | |
import json | |
import urllib2 | |
import os | |
import sys | |
# ElasticSearch Cluster to Monitor |
什么是动态规划?动态规划的意义是什么? - 阮行止的回答 - 知乎
# -*- coding: utf-8 -*-
# 总金额
money = 2000
# 存储金额与使用数量的数组
f = [0] * money
# 金额为零时可用策略为零
NewerOlder