Skip to content

Instantly share code, notes, and snippets.

View youndon's full-sized avatar
🎯
Focusing

no matter youndon

🎯
Focusing
View GitHub Profile
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
class MaterialColors {
companion object {
const val SURFACE = "SURFACE"
const val INVERSE_SURFACE = "INVERSE_SURFACE"
const val ON_SURFACE = "ON_SURFACE"
@youndon
youndon / Arrays.kt
Last active March 22, 2024 23:07
new changes
import java.util.*
import kotlin.collections.ArrayList
fun main() {
// The Array work like the variable,
// but the variable store one value in each time,
// the array can store many many many values in the same time.
//Note : index of the array begin from the '0'.
@youndon
youndon / Strings.kt
Last active March 22, 2024 23:07
get this
@file:Suppress("CAST_NEVER_SUCCEEDS")
fun main() {
/** String Attachments */
val a = "string"
.substring() // for print the string as range (start,end).
.substringAfter() // for remove all the string before the first delimiter in the string.
.substringAfterLast() // for remove all the string before the last delimiter in the string