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
| data class UserProperty internal constructor( | |
| val key: String, | |
| val value: Any | |
| ) { | |
| override fun toString(): String { | |
| return "UserProperty(key='$key', value=$value)" | |
| } | |
| } |
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.os.Bundle | |
| data class Event internal constructor( | |
| val name: String, | |
| val params: Bundle | |
| ) { | |
| override fun toString(): String { | |
| return "Event(name='$name', params=$params)" | |
| } | |
| } |
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
| implementation 'io.reactivex.rxjava3:rxandroid:3.0.0' | |
| implementation 'io.reactivex.rxjava3:rxjava:3.0.0' |
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 java.math.BigDecimal | |
| import java.security.InvalidParameterException | |
| import kotlin.text.StringBuilder | |
| object BrazilianNumberStringConverter { | |
| private val units = arrayOf( | |
| "", | |
| "um", | |
| "dois", |
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
| https://blog.usejournal.com/improve-recyclerview-performance-ede5cec6c5bf | |
| https://medium.com/@temidjoy/android-jetpack-empower-your-ui-with-android-data-binding-94a657cb6be1 | |
| https://material.io/design/color/#tools-for-picking-colors | |
| https://medium.com/over-engineering/setting-up-a-material-components-theme-for-android-fbf7774da739 | |
| \HBMDM.Integracao.ProcessadorDocumentoEvidenciasRecolhaRastreada\ProcessadorDocumentoEvidenciasRecolhaRastreada.cs |
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.content.Context | |
| import android.content.Intent | |
| import android.content.pm.PackageManager | |
| import android.net.Uri | |
| import android.provider.Settings | |
| import androidx.core.app.ActivityCompat | |
| import androidx.core.content.ContextCompat | |
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 React from 'react'; | |
| import { Input } from 'semantic-ui-react'; | |
| class TimeInput extends React.Component { | |
| state = { | |
| time: '', | |
| } | |
| handleChange = (event, { name, value }) => { | |
| value = value.replace(":", "") |
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
| buildscript { | |
| ext.versionMajor = 1 | |
| ext.versionMinor = 0 | |
| ext.versionPatch = 0 | |
| ext.generateVersionCode = { | |
| return ext.minSdkVersion * 10000000 + ext.versionMajor * 10000 + ext.versionMinor * 100 + ext.versionPatch | |
| } | |
| ext.generateVersionName = { |
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 io.reactivex.Flowable | |
| import io.reactivex.android.schedulers.AndroidSchedulers | |
| import io.reactivex.exceptions.Exceptions | |
| import io.reactivex.schedulers.Schedulers | |
| import retrofit2.HttpException | |
| import retrofit2.Response | |
| import timber.log.Timber | |
| import java.io.IOException |
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
| #Powershell with admin mode | |
| #https://docs.docker.com/machine/get-started/ | |
| To create a new docker machine you should have a virtual switch on Hyperv Manager | |
| This post helps me: https://github.com/docker/machine/issues/4328 | |
| Then you can create | |
| docker-machine create -d hyperv --hyperv-virtual-switch <NAME VIRTUAL SWICHT> <NEW MACHINE NAME> | |
| & "C:\Program Files\Docker\Docker\Resources\bin\docker-machine.exe" env default | Invoke-Expression | |