Ben Chuanlong Du's Blog

It is never too late to learn.

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 …

Operators in Different Programming Languages

Python Bash C/C++ Java Julia
and and -a && && &&
or or -o || || ||
not not ! ! ! !
bit and & & & & &
bit or | | | | |
bit not ~ ~ ~ ~ ~
bit xor ^ ^ ^ ^ ^
vector and
vector or
vector not
equals == -eq == == ==
not equal != -ne != != !=
greater than > -gt > > >
less than < -lt < < <
greater than or equal to >= -ge >= >= >=
less than or equal to …

Gitignore Examples

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

Tips and Traps

  1. You can ignore files in the root directory only by prefixing a pattern with /. For example, if you want to ignore the file features.txt in the root …

Visual Studio Code for Java Development

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

Java Development in Visual Studio Code

https://code.visualstudio.com/docs/languages/java

https://www.youtube.com/watch?v=RJIfsSmU9zk

https://iseif.dev/2019/06/05/vscode-as-java-ide/

https://github.com/redhat-developer …

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 …