This file contains 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.os.SystemClock | |
import androidx.compose.runtime.Composable | |
import androidx.compose.runtime.remember | |
/** | |
* Use this for debouncing action. | |
* This will returned a closure that will transformed the [action] | |
* so into debounced closure | |
* | |
* How to use : |
This file contains 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
class TitanApplication : Application(), ApplicationComponentOwner { | |
override lateinit var component : ApplicationComponent | |
fun onCreate(){ | |
component = ApplicationComponentImpl() | |
} | |
} |
This file contains 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 androidx.appcompat.app.AppCompatActivity | |
import com.cpssoft.mobile.titan.BuildConfig | |
import com.cpssoft.mobile.titan.common.extentions.formatDate | |
import com.cpssoft.mobile.titan.common.global.App | |
import com.cpssoft.mobile.titan.common.view.dialog.ApproveDialog | |
import com.cpssoft.mobile.titan.server.RemoteModule | |
import kotlinx.coroutines.CoroutineScope | |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.launch | |
import okhttp3.* |
This file contains 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.view.View | |
import android.view.inputmethod.InputMethodManager | |
import android.widget.EditText | |
private fun View.getMethodManager() : InputMethodManager { | |
return context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager | |
} |
This file contains 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 androidx.fragment.app.Fragment | |
import androidx.fragment.app.viewModels | |
import androidx.lifecycle.ViewModel | |
import androidx.lifecycle.ViewModelStoreOwner | |
inline fun <reified VM : ViewModel> Fragment.parentViewModel() : Lazy<VM>{ | |
return viewModels( | |
ownerProducer = { | |
parentFragmentManager as ViewModelStoreOwner | |
} |
This file contains 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
object StringUtil { | |
/** | |
* String Format : | |
* | |
* <<Regular Text>> <<Clickable Bold Text>> | |
* | |
* Don't forget this line to made clicking work, | |
* apply it into textView. |
This file contains 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
<?php | |
class PDF extends Pdftc { | |
//Page header | |
public function Header() { | |
if ($this->page == 1) | |
{ | |
$this->SetFont('times', '', 10); | |
$this->SetXY(110,8); | |
$this->hal='{nb}'; | |
$this->SetX(10); |
This file contains 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
# Daemon config file for PipeWire version "0.3.26" # | |
context.properties = { | |
## Configure properties in the system. | |
#library.name.system = support/libspa-support | |
#context.data-loop.library.name.system = support/libspa-support | |
#support.dbus = true | |
#link.max-buffers = 64 | |
link.max-buffers = 16 # version < 3 clients can't handle more | |
#mem.warn-mlock = false |
This file contains 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
package com.thegar.example.helper.location | |
import android.Manifest | |
import android.app.Activity | |
import android.content.IntentSender | |
import android.content.pm.PackageManager | |
import android.os.Looper | |
import androidx.core.app.ActivityCompat | |
import com.google.android.gms.common.api.ResolvableApiException | |
import com.google.android.gms.location.* |
This file contains 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.view.View | |
import android.widget.LinearLayout | |
import io.reactivex.Observable | |
interface Input { | |
val mandatory : Boolean | |
val focusIds : Array<Int> | |
fun buildView(context : Context) : View |
NewerOlder