Skip to content

Instantly share code, notes, and snippets.

View andreas-kkday's full-sized avatar

士捷@1111 andreas-kkday

  • 01:38 (UTC +08:00)
View GitHub Profile
@andreas-kkday
andreas-kkday / android-lint.gradle
Created February 15, 2022 02:27
lint parameter from gradle command line
android {
lintOptions {
disable 'InvalidPackage', 'IconMissingDensityFolder', 'ResourceType'
// Disable this check temporally
enable 'ValidFragment'
abortOnError project.hasProperty("abortOnLintError") ? project.getProperty("abortOnLintError").toBoolean() : true
}
}
@andreas-kkday
andreas-kkday / README
Last active March 21, 2022 09:30
check PR branch
1. 裝 github cli
https://cli.github.com/
然後登入, auth ...
2. 把兩個 script 放在 ~/bin/, 設定 PATH=$PATH:/Users/kkday/bin/
3. .zshrc 設定 alias
```
@andreas-kkday
andreas-kkday / Main.kt
Last active July 8, 2022 04:44
Coroutine Async
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
@andreas-kkday
andreas-kkday / queue-it-config.json
Created October 4, 2024 06:51
queue-it-config.json
{
"Triggers": [
{
"CustomerId": "kkdaytest",
"Description": null,
"Id": "e0238f50-b0e5-4fb4-938d-0117136de7b1",
"IsQueueitDefault": false,
"IsUsed": false,
"LogicalOperator": "And",
"Name": "trigger_test_m_product_page",
@andreas-kkday
andreas-kkday / check_elf_align.sh
Created May 20, 2025 06:50
check_elf_align.sh
#!/bin/bash
progname="${0##*/}"
progname="${progname%.sh}"
# usage: check_elf_alignment.sh [path to *.so files|path to *.apk]
cleanup_trap() {
if [ -n "${tmp}" -a -d "${tmp}" ]; then
rm -rf ${tmp}
fi
@andreas-kkday
andreas-kkday / gist:ec6f882529e812741f504c807ad57120
Last active August 29, 2025 11:08
Latest Version Code on Google Play
7000953