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 SpannableStringBuilder.lineBreak() { | |
append("\n") | |
} | |
fun SpannableStringBuilder.space() { | |
append(" ") | |
} |
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
interface CustomService { | |
@GET("veggies.json") | |
fun getVeggies(): Single<Response<CustomGenericResponse<List<Veggie>>>> | |
} |
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. Linked image: [](Link URL) | |
example: []({{< relref "post/B.md" >}}) |
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
# Compiled class file | |
*.class | |
# Log file | |
*.log | |
# BlueJ files | |
*.ctxt | |
# Mobile Tools for Java (J2ME) |
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
@Composable | |
fun heart(): GenericShape { | |
return GenericShape { size, _ -> | |
heartPath(size = size) | |
} | |
} |
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
@OptIn(ExperimentalAnimationApi::class) | |
@Composable | |
fun Heart(modifier: Modifier, horizontalPadding: Int, bottomMargin: Int) { | |
val width = LocalConfiguration.current.screenWidthDp | |
val height = LocalConfiguration.current.screenHeightDp - bottomMargin | |
val yRandom = Random.nextInt(0, height / 2) | |
val xRandom = Random.nextInt(horizontalPadding, (width - horizontalPadding)) | |
val state = remember { |