Skip to content

Instantly share code, notes, and snippets.

Avatar

Chuan-Zheng Lee czlee

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am czlee on github.
  • I am czlee (https://keybase.io/czlee) on keybase.
  • I have a public key whose fingerprint is D622 11E8 596B E292 0BF9 9F37 2C42 BE8C 917C F2EF

To claim this, I am signing this object:

View powerpairing.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@czlee
czlee / bp-round-robin.txt
Last active Aug 23, 2016
Enumeration of 16-team BP round robins
View bp-round-robin.txt
Allocate the first round arbitrarily, and call the rooms "A" through "D". Then
allocate the second round such that every room has one of each of A, B, C and D
(this must be true, otherwise someone's seen someone twice), and call those
rooms "1" through "4". What we have now is, without loss of generality, labels
for each team that indicate their first two rounds. In the grid below, columns
are first-round rooms, and rows are second-round rooms:
A1 B1 C1 D1
A2 B2 C2 D2
A3 B3 C3 D3
@czlee
czlee / plotcolors.ipynb
Created Jan 8, 2021
Reusing plot colors in JuliaPlots
View plotcolors.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@czlee
czlee / install-tex-packages.sh
Created Apr 13, 2021
Installing TeX Live packages en masse
View install-tex-packages.sh
tlmgr list --only-installed > installed_texlive_packages_2020.txt
# I used find-replace in Sublime Text to process the file
sudo while read p; do tlmgr install "$p"; done < installed_texlive_packages_2020.txt
View Default (Windows).sublime-keymap
[
{ "keys": ["f5"], "command": "build" },
{ "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace" },
{ "keys": ["alt+shift+b"], "command": "insert_snippet", "args": { "name": "Packages/User/Django-blocktrans.sublime-snippet" } },
{ "keys": ["alt+shift+v"], "command": "insert_snippet", "args": { "name": "Packages/User/Django-blocktrans-plural.sublime-snippet" } },
{ "keys": ["alt+shift+t"], "command": "insert_snippet", "args": { "name": "Packages/Djaneiro/html/trans.sublime-snippet" } },
]
@czlee
czlee / .bash_aliases
Last active Jul 22, 2021
Preference files
View .bash_aliases
alias gs='git status'
alias gd='git diff'
alias gdh='git diff HEAD'
alias gdw='git diff -w'
alias gka='gitk --all &'
alias grepx='grep -r -n --exclude=*.pyc --exclude=*~'
alias grepdj='grep -r -n --exclude=*.pyc --exclude=*.bak --exclude=*~ --exclude-dir=venv*'
alias li='ls --ignore=*~ --ignore=*.pyc --ignore=__pycache__'
alias notebook='BROWSER=~/jupyter-notebook-browser.sh jupyter notebook --port=8889'