Skip to content

Instantly share code, notes, and snippets.

View khsing's full-sized avatar
🎯
Focusing

Guixing Bai khsing

🎯
Focusing
View GitHub Profile
@khsing
khsing / geoip_data_path.diff
Created January 8, 2020 04:27
geoip_data_path.diff
diff --git a/infra/conf/router.go b/infra/conf/router.go
index b3870e45..56e71930 100644
--- a/infra/conf/router.go
+++ b/infra/conf/router.go
@@ -1,6 +1,8 @@
package conf
import (
+ "os"
+ "path/filepath"
@khsing
khsing / parse_chinese_name.py
Created March 3, 2020 13:49
分析中文名字的姓和名
from typing import Dict
# https://zh.wikipedia.org/wiki/%E6%BC%A2%E5%A7%93%E7%BE%85%E9%A6%AC%E5%AD%97%E6%A8%99%E6%B3%A8
CHINESE_SURNAMES = [
"赵",
"钱",
"孙",
"李",
"周",
"吴",
"郑",
@khsing
khsing / parse_chinese_name.py
Created March 3, 2020 13:49
分析中文名字的姓和名
from typing import Dict
# https://zh.wikipedia.org/wiki/%E6%BC%A2%E5%A7%93%E7%BE%85%E9%A6%AC%E5%AD%97%E6%A8%99%E6%B3%A8
CHINESE_SURNAMES = [
"赵",
"钱",
"孙",
"李",
"周",
"吴",
"郑",