View Main.kt
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
lifecycleScope.launch(Dispatchers.IO) { | |
val start = Instant.now().epochSecond | |
println(">>> ${Instant.now().epochSecond}") | |
val def1 = async { async1() } | |
val def2 = async { async2() } | |
println(">>> ${def1.await()} ${def2.await()}") | |
println(">>> ${Instant.now().epochSecond - start}") //3 | |
} | |
lifecycleScope.launch() { | |
val start = Instant.now().epochSecond |
View README
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
1. 裝 github cli | |
https://cli.github.com/ | |
然後登入, auth ... | |
2. 把兩個 script 放在 ~/bin/, 設定 PATH=$PATH:/Users/kkday/bin/ | |
3. .zshrc 設定 alias | |
``` |
View android-lint.gradle
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
android { | |
lintOptions { | |
disable 'InvalidPackage', 'IconMissingDensityFolder', 'ResourceType' | |
// Disable this check temporally | |
enable 'ValidFragment' | |
abortOnError project.hasProperty("abortOnLintError") ? project.getProperty("abortOnLintError").toBoolean() : true | |
} | |
} |