This file contains hidden or 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
| deploy: | |
| docker compose down -v && docker compose up -d |
This file contains hidden or 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
| package pro.respawn.app.feature.account.thirdparty | |
| import androidx.compose.runtime.Composable | |
| import co.touchlab.kermit.Logger | |
| import kotlinx.cinterop.ExperimentalForeignApi | |
| import kotlinx.cinterop.cstr | |
| import kotlinx.cinterop.memScoped | |
| import kotlinx.cinterop.reinterpret | |
| import kotlinx.coroutines.CancellationException | |
| import kotlinx.coroutines.suspendCancellableCoroutine |
This file contains hidden or 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. Download Git Bash (only if on Windows) | |
| 2. Go to your users folder and open the .ssh folder. Then open Git Bash / Terminal there and generate a key pair: | |
| ssh-keygen -m PEM -t rsa | |
| 3. Copy the key to your server: | |
| ssh-copy-id -i <keyname> <user>@<host> | |
| 5. Login to your Ubuntu server via SSH: | |
| ssh -i <keyname> <user>@<host> |
This file contains hidden or 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.animation.core.* | |
| import androidx.compose.foundation.background | |
| import androidx.compose.foundation.layout.* | |
| import androidx.compose.foundation.shape.CircleShape | |
| import androidx.compose.material.MaterialTheme | |
| import androidx.compose.runtime.Composable | |
| import androidx.compose.runtime.LaunchedEffect | |
| import androidx.compose.runtime.remember | |
| import androidx.compose.ui.Modifier | |
| import androidx.compose.ui.graphics.Color |
This file contains hidden or 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.animation.core.* | |
| import androidx.compose.foundation.background | |
| import androidx.compose.foundation.layout.* | |
| import androidx.compose.foundation.shape.CircleShape | |
| import androidx.compose.material.MaterialTheme | |
| import androidx.compose.material.Text | |
| import androidx.compose.runtime.Composable | |
| import androidx.compose.runtime.getValue | |
| import androidx.compose.ui.Alignment | |
| import androidx.compose.ui.Modifier |
This file contains hidden or 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 value(str: String): Int { | |
| println(str) | |
| return 0 | |
| } | |
| fun test(str: String) { | |
| println("【Executed Test: $str】") | |
| } | |
| class Test1 { |
This file contains hidden or 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
| Class Hasher { | |
| fun hash(): String { | |
| val bytes = this.toString().toByteArray() | |
| val md = MessageDigest.getInstance("SHA-256") | |
| val digest = md.digest(bytes) | |
| return digest.fold("", { str, it -> str + "%02x".format(it) }) | |
| } | |
| } |
NewerOlder