Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Type Annotation in Python
Tips and Traps¶
Type hints cheat sheet (Python 3) is a quick cheat sheet showing how the PEP 484 type annotation notation represents various common types in Python 3.
Notice that the annotation on List and Tuple are different.
List[T]
stands for a variable length list of elements with typeT
Poker Game in Casinos
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Vegas
Best place for gambling games in the US.
Washington
Max bet is 300 in non-tribals, 500 on tribal casinos. There is a 4-bet cap (3 raises) in both types of …
Visual Studio Code for Kotlin Development
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Extensions
Other Potentially Useful Extensions
References
https://www.davideaversa.it/blog/kotlin-development-in-vscode/
https …
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 …