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
Scaffold-DbContext "Data Source=.\MSSQLSERVER; Initial Catalog=EshopApi_DB;Integrated Security=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models |
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
# Gradle Cache for the project | |
.gradle | |
# Local Android SDK directory | |
local.properties | |
# Project build folder with Kotlin session data | |
build/ | |
# Generated by Android Studio when running Layout Inspector or Method Tracing |
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
scp [email protected]:~/todo.txt ~/downloads |
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
putty.exe -ssh [email protected] -pw rootzpassword |
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
pscp -pw <password> [email protected]:log.txt c:\download\ |
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
version: 2 | |
jobs: | |
build: | |
working_directory: ~/code | |
docker: | |
- image: circleci/android:api-29 | |
environment: | |
JVM_OPTS: -Xmx3200m | |
steps: | |
- checkout |
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 android.app.Activity | |
import android.app.Application | |
import com.yandex.metrica.YandexMetrica | |
import com.yandex.metrica.YandexMetricaConfig | |
import com.yandex.metrica.profile.Attribute | |
import com.yandex.metrica.profile.UserProfile | |
class EventTrackerUtils { | |
fun initializeTracker(application: Application) { |
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 android.content.Context | |
import android.net.ConnectivityManager | |
class NetworkUtils { | |
fun isNetworkAvailable(context: Context): Boolean { | |
val connectivityManager = context.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager | |
val activeNetworkInfo = connectivityManager.activeNetworkInfo | |
return activeNetworkInfo != null && activeNetworkInfo.isConnected | |
} |
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 android.content.Context | |
import android.text.Editable | |
import android.text.TextWatcher | |
import android.widget.EditText | |
class TextWatcherUtils { | |
fun mobilePhoneRequired(context: Context, editText: EditText): TextWatcher { | |
val textWatcher = object : TextWatcher { | |
override fun beforeTextChanged(s: CharSequence, start: Int, count: Int, after: Int) {} | |
override fun onTextChanged(s: CharSequence, start: Int, before: Int, count: Int) {} |
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 android.content.Context | |
import android.util.Base64 | |
import android.widget.ImageView | |
import androidx.core.content.res.ResourcesCompat | |
import com.bumptech.glide.Glide | |
import timber.log.Timber | |
import java.util.* | |
class GlideUtils | |
constructor(val context: Context) { |