Skip to content

Instantly share code, notes, and snippets.

View faridfor's full-sized avatar
😄

Farid Forootan Shad faridfor

😄
  • Adanic Inc
View GitHub Profile
import android.text.TextUtils
import java.math.BigDecimal
import kotlin.math.min
object PersianNumbersToLettersConverter {
private var splitter = " و "
private var words = arrayListOf(
arrayListOf("", "یک", "دو", "سه", "چهار", "پنج", "شش", "هفت", "هشت", "نه"),
arrayListOf("ده", "یازده", "دوازده", "سیزده", "چهارده", "پانزده", "شانزده", "هفده", "هجده", "نوزده"),
package com.test.biometrictest
import android.util.Log
import androidx.biometric.BiometricPrompt
class MyCallBack(private val myData: MyData) :
BiometricPrompt.AuthenticationCallback() {
init {
Log.e("MyCallback", "onConstruct data: $myData")
fun showSigners(document: Document) {
ceremony_holder.removeAllViews()
val ceremonies = document.ceremonies?.sortedBy { it.order } ?: return
val holderWidth = ceremony_holder.width
val cellSize = resources.getDimensionPixelSize(R.dimen.document_image_size)
val count = holderWidth / cellSize
if (ceremonies.size > count) {
package ir.adanic.kilid.tasks;
import android.annotation.SuppressLint;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.net.Uri;
import android.os.AsyncTask;