Skip to content

Instantly share code, notes, and snippets.

Xavier quxiao

Block or report user

Report or block quxiao

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View OCR test sample
import os
import sys
import base64
import requests
import json
# config host address
HOST = "http://localhost:10000"
def main():
View 公有云API sample
#!/bin/python
import qiniu
import requests
AK='xxx'
SK='xxx'
API_HOST = 'argus.atlab.ai'
View interface_test.go
package main
import (
"fmt"
)
type Inter interface {
Func(string)
}
@quxiao
quxiao / mmsysmond.ini
Last active Nov 27, 2015
mmsysmond.ini
View mmsysmond.ini
[server]
;host变量设置为内网可以访问的跳板机域名或者IP
host = 127.0.0.1
port = 13301
[reg_server]
;host变量设置为内网可以访问的跳板机域名或者IP
host = 127.0.0.1
port = 13300
@quxiao
quxiao / haproxy.cfg
Last active Nov 27, 2015
haproxy.cfg
View haproxy.cfg
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
View gist:10004846
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;
You can’t perform that action at this time.