Skip to content

Instantly share code, notes, and snippets.

View GrishinSergey's full-sized avatar
👨‍💻

Sergey Grishin GrishinSergey

👨‍💻
  • Intellias Inc
  • Ukraine, Kyiv
View GitHub Profile
@GrishinSergey
GrishinSergey / ApiService.kt
Last active September 7, 2020 14:46
ApiUtils.kt
import io.reactivex.Single
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Query
interface ApiService {
@GET("Controller/action")
fun apiCallName(
@Query("param") param: Long
{
"serializationLibrary": "gson",
"useRxJava2": true,
"dateLibrary": "joda",
"collectionType": "list",
"library": "jvm-retrofit2"
}
@GrishinSergey
GrishinSergey / dependencies.gradle
Last active May 30, 2020 06:57
Regular Gradle Config
ext.deps = [:]
ext.deps.androidx = [:]
ext.deps.google = [:]
ext.deps.kotlin = [:]
ext.deps.third = [:]
ext.deps.test = [:]
ext.deps.androidx.appcompat = "androidx.appcompat:appcompat:$appcompatVersion"
ext.deps.androidx.cardview = "androidx.cardview:cardview:$cardviewVersion"
ext.deps.androidx.recyclerview = "androidx.recyclerview:recyclerview:$recyclerViewVersion"
package com.sagrishin.ptsadm.common.uikit.alertdialog
import android.content.Context
import android.content.DialogInterface
import android.view.View
import androidx.annotation.StringRes
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import androidx.fragment.app.Fragment
#!/bin/bash
### Set Language
TEXTDOMAIN=virtualhost
### Set default parameters
action=$1
domain=$2
rootDir=$3
owner=$(who am i | awk '{print $1}')
email='webmaster@localhost'