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
int count(const std::vector<std::string>& str_vec, const size_t threshold) | |
{ | |
int size = 0; | |
std::vector<std::string>::const_iterator it; | |
for (it = str_vec.begin(); it != str_vec.end(); ++ it) { | |
if (it->length() < threshold) { | |
++ size; | |
} | |
} | |
return size; |
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
[server] | |
;host变量设置为内网可以访问的跳板机域名或者IP | |
host = 127.0.0.1 | |
port = 13301 | |
[reg_server] | |
;host变量设置为内网可以访问的跳板机域名或者IP | |
host = 127.0.0.1 | |
port = 13300 |
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
global | |
log 127.0.0.1 local0 | |
# log 127.0.0.1 local1 | |
maxconn 40000 | |
# ulimit-n 8000 | |
uid 0 | |
gid 0 | |
daemon | |
pidfile /etc/haproxy/haproxy.pid |
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
package main | |
import ( | |
"fmt" | |
) | |
type Inter interface { | |
Func(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
#!/bin/python | |
import qiniu | |
import requests | |
AK='xxx' | |
SK='xxx' | |
API_HOST = 'argus.atlab.ai' |
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
import os | |
import sys | |
import base64 | |
import requests | |
import json | |
# config host address | |
HOST = "http://localhost:10000" | |
def main(): |