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
BB_REPO_SSH_URL= | |
GITHUB_REPO_SSH_URL= | |
LOCAL_FOLDER=ghm | |
# Cleanup | |
if [ -d ${LOCAL_FOLDER} ]; then | |
rm -rf ${LOCAL_FOLDER} | |
fi | |
git clone --mirror ${BITBUCKET_REPO_SSH_URL} ${LOCAL_FOLDER} | |
# git -C ${LOCAL_FOLDER} lfs fetch --all # Uncomment for LFS support |
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
The root cause java.lang.AssertionError was thrown at: org.jetbrains.kotlin.ir.util.IrUtilsKt.copyValueParametersToStatic(IrUtils.kt:898) | |
at org.jetbrains.kotlin.backend.common.CodegenUtil.reportBackendException(CodegenUtil.kt:241) | |
at org.jetbrains.kotlin.backend.common.CodegenUtil.reportBackendException$default(CodegenUtil.kt:236) | |
at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invokeSequential(performByIrFile.kt:68) | |
at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invoke(performByIrFile.kt:55) | |
at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invoke(performByIrFile.kt:41) | |
at org.jetbrains.kotlin.backend.common.phaser.NamedCompilerPhase.invoke(CompilerPhase.kt:96) | |
at org.jetbrains.kotlin.backend.common.phaser.CompositePhase.invoke(PhaseBuilders.kt:29) | |
at org.jetbrains.kotlin.backend.common.phaser.NamedCompilerPhase.invoke(CompilerPhase.kt:96) | |
at org.jetbrains.kotlin.backend.common.phaser.CompilerPhaseKt.invokeToplevel(CompilerPhase.kt:43) |
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
import androidx.compose.foundation.gestures.detectTapGestures | |
import androidx.compose.foundation.layout.Box | |
import androidx.compose.runtime.Composable | |
import androidx.compose.ui.Modifier | |
import androidx.compose.ui.input.pointer.pointerInput | |
@Composable | |
fun LongClickHackBox( | |
onClick: (() -> Unit)?, | |
onLongClick: (() -> Unit)?, |
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
import org.junit.jupiter.api.Test | |
import org.junit.jupiter.api.Assertions.* | |
class FairyTaleTest { | |
@Test | |
fun `Once upon a time in a lit kingdom`() { | |
val kingdom = Kingdom("Vibeland") | |
val princess = InfluencerPrincess("Ava", followers = 100_000) | |
kingdom.addInhabitant(princess) |
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 Intent.prettyPrint(): String = buildString { | |
append("Intent {") | |
val values = listOf<Pair<String, String?>>( | |
"action" to action, | |
"data" to data.toString(), | |
"type" to type, | |
"component" to component?.flattenToString(), | |
"flags" to flags.toString(), | |
"package" to `package`, | |
"categories" to categories?.joinToString(","), |