Skip to content

Instantly share code, notes, and snippets.

View czlee's full-sized avatar

Chuan-Zheng Lee czlee

View GitHub Profile
@czlee
czlee / install-tex-packages.sh
Created April 13, 2021 20:33
Installing TeX Live packages en masse
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
@czlee
czlee / plotcolors.ipynb
Created January 8, 2021 00:10
Reusing plot colors in JuliaPlots
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[
{ "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 April 16, 2022 05:19
Preference files on WSL
alias gs='git status'
alias gd='git diff'
alias gdh='git diff HEAD'
alias gdw='git diff --ignore-all-space'
alias gdcw='git diff --color-words'
alias gdcc='git diff --color-words=.'
alias gl='git log --oneline -10'
alias notebook='BROWSER=~/jupyter-notebook-browser.sh jupyter notebook'
alias juplab='BROWSER=~/jupyter-notebook-browser.sh jupyter lab'
alias venv='source venv/bin/activate'
@czlee
czlee / bp-round-robin.txt
Last active August 23, 2016 07:07
Enumeration of 16-team BP round robins
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

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: