I hereby claim:
- I am joaomneto on github.
- I am joaoneto (https://keybase.io/joaoneto) on keybase.
- I have a public key ASA1mA-HoR9NMZhEex5UPxuwTE8pglk_ysQPcs6rLzpj_go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
fun parseFilePart1(inputStream: InputStream) = with(inputStream.bufferedReader()) { | |
var line: String? = null | |
val stacksRaw = mutableListOf<String>() | |
val moves = mutableListOf<List<Int>>() | |
var movesListBegun = false | |
while (true) { | |
line = readLine() | |
when { | |
line == null -> break |
import io.ktor.client.HttpClient | |
import io.ktor.client.request.header | |
import io.ktor.client.request.post | |
import io.ktor.http.HttpHeaders | |
import io.ktor.http.formUrlEncode | |
suspend fun generateAccessToken(clientId: String, clientSecret: String, username: String, password: String): String { | |
val client = HttpClient() | |
val response = client.post<String>("https://api.trakt.tv/oauth/token") { | |
header(HttpHeaders.Authorization, "Basic ${base64Encode("$clientId:$clientSecret")}") |
#!/bin/bash | |
# MySQL Docker image details | |
MYSQL_IMAGE="mysql:8.0.30" | |
MYSQL_ROOT_PASSWORD="your_root_password" | |
# MySQL database details | |
MYSQL_DATABASE="test" | |
MYSQL_USER="root" |