- Download or copy
tab_bar.pyinto your kitty config folder (usually~/.config/kitty). - Add
tab_bar_style customtokitty.conf. - Reload config or restart kitty.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """檢查鼓組分軌(drum stem)的拍子是否穩定,並估算 BPM。 | |
| 只需要 ffmpeg(解碼)與 numpy。 | |
| 用法: | |
| ./check_beat.py "song dir" # 用 <dir>/drums.wav | |
| ./check_beat.py path/to/drums.wav ... | |
| ./check_beat.py --min-bpm 70 --max-bpm 180 *.wav |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/bash | |
| # This script assumes you | |
| # | |
| # - use key to authorize | |
| # - have an entry in known hosts file (eg. ssh to remote host once) | |
| # | |
| # You should check the "Options=" line to add or change sshfs/fuse options, especially | |
| # the path to key file (default to "${HOME}/.ssh/id_ed25519") and known_hosts file. |
By default, cache location when running CI tasks is /opt/hostedtoolcache. It's okay to change it by setting 3 envvars in config.yaml
runner:
envs:
RUNNER_TOOL_CACHE: /path/to/cache
AGENT_TOOLSDIRECTORY: /path/to/cache
RUN_TOOL_CACHE: /path/to/cache使用 Automate 啟動 Binary Eye 掃碼後,自動傳送簡訊到 1922
- 安裝 Binary Eye
- 安裝 Automate
- 下載 Automate Flow 並匯入
- 把 flow 加到桌面 (新增桌面小工具 -> automate -> flow shortcut -> TW COVID SMS)
Automate 預設簡訊每小時只能發 10 封,若經常需要出入實聯制場所,請自行更改設定 (在主選單的 Settings -> SMS sent limit)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ((前 轉 前) 反轉) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class SomeClass { | |
| public function process($c) { | |
| if ($c instanceof ClassA) { | |
| $this->processA($c); | |
| } elseif ($c instanceof ClassB) { | |
| $this->processB($c); | |
| } else { | |
| // error process |
This benchmark matches the last route and unknown route. It generates a randomly prefixed and suffixed route in an attempt to thwart any optimization. 1,000 routes each with 9 arguments.
This benchmark consists of 16 tests. Each test is executed 1,000 times, the results pruned, and then averaged. Values that fall outside of 3 standard deviations of the mean are discarded.
| Test Name | Results | Time | + Interval | Change |
|---|---|---|---|---|
| r3 - unknown route (1000 routes) | 995 | 0.0000081977 | +0.0000000000 | baseline |
| r3 - last route (1000 routes) | 997 | 0.0000102492 | +0.0000020514 | 25% slower |
NewerOlder