##Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:alexpchin/.git
##Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:alexpchin/.git
package org.example | |
import com.zaxxer.hikari.HikariConfig | |
import com.zaxxer.hikari.HikariDataSource | |
import io.ktor.application.call | |
import io.ktor.http.HttpStatusCode | |
import io.ktor.request.receive | |
import io.ktor.response.respond | |
import io.ktor.routing.Route | |
import io.ktor.routing.get |
@Qualifier | |
annotation class MainCoroutineScope | |
@Module | |
object CoroutineScopeModule { | |
@Provides | |
@MainCoroutineScope | |
fun provideMainCoroutineScope(): CoroutineScope = CoroutineScope(Job() + Dispatchers.Main) | |
/* Copyright 2019 Google LLC. | |
SPDX-License-Identifier: Apache-2.0 */ | |
class ConferenceDataWorkerFactory( | |
private val refreshEventDataUseCase: RefreshConferenceDataUseCase | |
) : WorkerFactory() { | |
override fun createWorker( | |
appContext: Context, | |
workerClassName: String, | |
workerParameters: WorkerParameters |
import androidx.compose.foundation.Text | |
import androidx.compose.foundation.clickable | |
import androidx.compose.foundation.layout.* | |
import androidx.compose.material.* | |
import androidx.compose.material.icons.Icons | |
import androidx.compose.material.icons.filled.KeyboardArrowDown | |
import androidx.compose.runtime.Composable | |
import androidx.compose.runtime.mutableStateOf | |
import androidx.compose.runtime.remember | |
import androidx.compose.ui.Alignment |
import android.os.Bundle | |
import androidx.lifecycle.Lifecycle | |
import androidx.lifecycle.LifecycleRegistry | |
import androidx.savedstate.SavedStateRegistry | |
import androidx.savedstate.SavedStateRegistryController | |
import androidx.savedstate.SavedStateRegistryOwner | |
internal class MyLifecycleOwner : SavedStateRegistryOwner { | |
private var mLifecycleRegistry: LifecycleRegistry = LifecycleRegistry(this) | |
private var mSavedStateRegistryController: SavedStateRegistryController = SavedStateRegistryController.create(this) |
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> |
import android.content.Intent | |
import android.graphics.PixelFormat | |
import android.os.IBinder | |
import android.view.Gravity | |
import android.view.WindowManager | |
import androidx.compose.foundation.gestures.detectDragGestures | |
import androidx.compose.foundation.layout.Box | |
import androidx.compose.foundation.layout.BoxScope | |
import androidx.compose.runtime.Composable | |
import androidx.compose.runtime.getValue |
// Copyright 2022 Google LLC. | |
// SPDX-License-Identifier: Apache-2.0 | |
import android.content.Context | |
import android.graphics.Bitmap | |
import androidx.compose.runtime.Composable | |
import androidx.compose.runtime.LaunchedEffect | |
import androidx.compose.runtime.getValue | |
import androidx.compose.runtime.mutableStateOf | |
import androidx.compose.runtime.remember |