brew analytics off
- https://brew.sh/index
- brew analytics off
- App Store
This file contains 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 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
- https://brew.sh/index
- brew analytics off
- App Store
This file contains 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
// _oo0oo_ | |
// o8888888o | |
// 88" . "88 | |
// (| -_- |) | |
// 0\ = /0 | |
// ___/`---'\___ | |
// .' \\| |// '. | |
// / \\||| : |||// \ | |
// / _||||| -:- |||||- \ | |
// | | \\\ - /// | | |
This file contains 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 flux() = | |
Flux.mergeSequential(getMonoResponse(100), getMonoResponse(200)) | |
.collectList() | |
.flatMap { v -> | |
return@flatMap getMonoResponse(300) | |
.map { v2 -> | |
v.add(v2) | |
return@map v | |
} | |
}.flatMap { v -> |
NewerOlder