- 買了就要用;用不到就賣掉
- 按鍵類型不重複
- 量產鍵盤品牌不重複
- 團購套件
- 65%
- WKL
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
| #!/bin/zsh | |
| # Read JSON input from stdin | |
| input=$(cat) | |
| # Extract values using jq | |
| CURRENT_TIME=$(date "+%Y-%m-%d %H:%M:%S") | |
| MODEL_DISPLAY=$(echo "$input" | jq -r '.model.display_name // "unknown"') | |
| CURRENT_DIR=$(echo "$input" | jq -r '.workspace.current_dir // "."') | |
| TOTAL_COST=$(echo "$input" | jq -r '.cost.total_cost_usd // 0' | xargs printf "%.2f") |
brew analytics off- https://brew.sh/index
- brew analytics off
- App Store
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
| public class OptSample { | |
| public void demoOpt() { | |
| String requestBody = sendPost(); | |
| // 頭部 | |
| // of -> 確定不為 Null 的值 | |
| // ofNullable -> 可能為 Null 的值 | |
| Optional.of(requestBody).orElse("Empty Body"); | |
| Optional.ofNullable(requestBody).orElse("Empty Body"); |
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
| fun <T> T?.catchErrWhenNull(tw: Throwable): Either<Throwable, T> = Either.Companion.catch { this ?: throw tw } | |
| fun <T> Either<Throwable, T?>.flattenCatchErrWhenNull(tw: Throwable): Either<Throwable, T> = | |
| when (this) { | |
| is Either.Left -> this | |
| is Either.Right -> Either.Companion.catch { | |
| this.value ?: throw tw | |
| } | |
| } |
- Apple
- iPhone 13 Pro Max
- MacBook Pro
- Magic Mouse
- Magic Trackpad
- Watch
- Airpods Pro
- F80se
- old
- http://qmkeyboard.cn/
- upload f80se.json in dropbox
- usb有hard reset
- qmk toolbox
- via
- old
- E8.5
- https://brew.sh/index
- brew analytics off
NewerOlder