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
scriptDir=os.path.split(os.path.realpath(__file__))[0] | |
print(scriptDir) |
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 sublime | |
import sublime_plugin | |
import time | |
from Git.git import GitTextCommand | |
import functools | |
import codecs | |
import re | |
class CommitBlogCommand(GitTextCommand): |
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 -*- | |
import requests | |
from Tools.scripts.treesync import raw_input | |
from bs4 import BeautifulSoup | |
import re | |
from datetime import datetime | |
import demjson | |
common_headers = { | |
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)' |
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: utf8 -*- | |
import sublime | |
import sublime_plugin | |
import datetime | |
import time | |
import functools | |
import re | |
import codecs | |
import os | |
import sys |
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
map F createActiveTabbedHint | |
let searchengine zhihu = 'https://www.zhihu.com/search?q=%s' | |
let searchengine youdao = 'http://youdao.com/w/eng/%s' | |
let searchalias g = 'google' | |
let searchalias zh = 'zhihu' | |
let searchalias yd = 'youdao' | |
let previousmatchpattern = '((?!last)(prev(ious)?|上一(页|頁)?|newer|back|«|less|<<?|gigi‹fd| )+)' | |
let nextmatchpattern = '((?!first)(下一(页|頁)?|next|older|more|>>?|›|»|forward| )+)' |
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: utf8 -*- | |
#!/usr/bin/python | |
import os | |
import re | |
import codecs | |
import sys | |
import tempfile | |
import string | |
reload(sys) |
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
convmv -f UTF-8 -t GBK --notest -r docs |