Skip to content

Instantly share code, notes, and snippets.

@callmexss
callmexss / bobp-python.md
Created November 28, 2018 07:59 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@callmexss
callmexss / test_and_debug.ipynb
Created December 27, 2018 07:27 — forked from SergiyKolesnikov/test_and_debug.ipynb
Testing and Debugging Jupyter Notebooks
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@callmexss
callmexss / cloudSettings
Last active July 8, 2019 16:14
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-07-08T16:14:56.065Z","extensionVersion":"v3.3.1"}
@callmexss
callmexss / default.custom.yaml
Created November 27, 2019 00:04 — forked from lotem/default.custom.yaml
在Rime輸入方案選單中添加五筆、雙拼、粵拼、注音,保留你需要的
# 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 # 朙月拼音 简化字模式
@callmexss
callmexss / extract_c_func.py
Created September 7, 2023 13:11
extract c functions
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():