Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on pre-commit

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

It is suggested that you leverage CICD tools (e.g., GitHub Actions) instead of Git Hooks which happens locally. However, Git hooks can be useful for simple and fast local code …

Use Flake8 to Lint Python Scripts

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Configration

It is suggested that you put the configuration into a file named .flake8 in the root directory of your project. When flake8 supports pyproject.toml later, it is best to …

Data Types in Different Programming Languages

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Data Type C C++ Rust Java Python numpy pyarrow Spark SQL SQL
8 bit integer short (16-bit) int8_t i8 short (16-bit) int (arbitrary precision) int8 TinyInt …

Python for Tablet

https://stackoverflow.com/questions/54003194/how-can-i-access-tablet-pen-data-via-python

https://kivy.org/#home

Tips on Python-Language-Server

pip3 install python-language-server[all]

References

https://github.com/palantir/python-language-server

https://github.com/tomv564/pyls-mypy

https://github.com/paradoxxxzero/pyls-isort

https://github.com/rupert/pyls-black