Word of warning: you don't need to use the command line, but you need to know the basics. Please first know how to do things in their simplest form and only then move to magic GUIs.
- It all starts with a git init
#!/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" |
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")}") |
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 |
I hereby claim:
To claim this, I am signing this object: