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
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 = [ | |
"赵", | |
"钱", | |
"孙", | |
"李", | |
"周", | |
"吴", | |
"郑", |
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
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 = [ | |
"赵", | |
"钱", | |
"孙", | |
"李", | |
"周", | |
"吴", | |
"郑", |
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
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" |
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 | |
from xml.etree import ElementTree as ET | |
from argparse import ArgumentParser | |
import os | |
import sys | |
ns = "http://maven.apache.org/POM/4.0.0" | |
ET.register_namespace("", ns) | |
namespaces = {'pom' : ns} |
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 | |
# coding: utf-8 | |
import os | |
import sys | |
from datetime import datetime | |
from bs4 import BeautifulSoup,Tag | |
def find_all_html(path): | |
for root, dirs, files in os.walk(path): |
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
# -*- coding: utf-8 -*- | |
# @Author: khsing | |
# @Date: 2017-05-08 17:52:55 | |
# @Last Modified by: khsing | |
# @Last Modified time: 2017-05-08 18:38:08 | |
import sys | |
import hashlib | |
def checkImeisv(imeisv): |
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
// ==UserScript== | |
// @name App Store Price History | |
// @namespace mybeky | |
// @author mybeky, khsing | |
// @include https://itunes.apple.com/* | |
// @description Add price history table in App Store page | |
// @icon http://cl.ly/FqTY/appshopper.png | |
// @version 0.1.2 | |
// @connect * | |
// @grant GM_xmlhttpRequest |
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
# ************************************************************ | |
# Sequel Pro SQL dump | |
# Version 4096 | |
# | |
# http://www.sequelpro.com/ | |
# http://code.google.com/p/sequel-pro/ | |
# | |
# Host: localhost (MySQL 5.6.26) | |
# Database: test | |
# Generation Time: 2015-09-09 07:27:55 +0000 |
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 sys | |
import json | |
import httplib | |
class ElasticSearch(object): | |
def __init__(self, host="localhost:9200"): | |
super(ElasticSearch, self).__init__() | |
if ':' in host: |
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/python | |
# coding:utf-8 | |
import sys | |
from AddressBook import * | |
from pprint import pprint | |
MAPPING = { | |
u'工作传真': kABPhoneWorkFAXLabel, | |
u'住宅传真': kABPhoneHomeFAXLabel, |
NewerOlder