I hereby claim:
- I am dnihze on github.
- I am dnihze (https://keybase.io/dnihze) on keybase.
- I have a public key ASByZo8kODOeOxkgF9D7qphOIM73vofAgoDHZUFBzxbHugo
To claim this, I am signing this object:
| @Composable | |
| public fun painterResource( | |
| @DrawableRes id: Int, | |
| filterQuality: FilterQuality, | |
| ): Painter { | |
| LocalConfiguration.current | |
| val resources = LocalContext.current.resources | |
| val value = remember { TypedValue() } | |
| resources.getValue(id, value, true) | |
| val path = value.string |
I hereby claim:
To claim this, I am signing this object:
| package dev.kaitei.utils | |
| import androidx.lifecycle.SavedStateHandle | |
| import kotlinx.coroutines.flow.MutableStateFlow | |
| private fun <T> SavedStateHandle.getMutableStateFlow( | |
| key: String, | |
| ): MutableStateFlow<T?> = getMutableStateFlowInternal( | |
| key = key, | |
| hasInitialValue = true, |
| import java.util.* | |
| import kotlin.math.* | |
| data class Point(var x: Double, var y: Double) { | |
| fun vect(p: Point) = Point(p.x - x, p.y - y) | |
| fun norm() = sqrt(x.pow(2) + y.pow(2)) | |
| fun dist(p: Point) = vect(p).norm() | |
| fun add(p: Point) = Point(x + p.x, y + p.y) | |
| fun mult(a: Double) = Point(x * a, y * a) | |
| } |
| import vk_api | |
| import time | |
| from subprocess import call | |
| def main(): | |
| # your vk login and password | |
| login, password = '[email protected]', 'password' | |
| # sometext | |
| sometext = "text" | |
| # path to KPI Live logo |