A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
{"lastUpload":"2019-07-08T16:14:56.065Z","extensionVersion":"v3.3.1"} |
# default.custom.yaml | |
# save it to: | |
# ~/.config/ibus/rime (linux) | |
# ~/Library/Rime (macos) | |
# %APPDATA%\Rime (windows) | |
patch: | |
schema_list: | |
- schema: luna_pinyin # 朙月拼音 | |
- schema: luna_pinyin_simp # 朙月拼音 简化字模式 |
import re | |
from pathlib import Path | |
import clang.cindex | |
def extract_functions(filename): | |
index = clang.cindex.Index.create() | |
tu = index.parse(filename) | |
functions = [] | |
for node in tu.cursor.walk_preorder(): |