Skip to content

Instantly share code, notes, and snippets.

View ZaqueuLima3's full-sized avatar
🎯

Zaqueu Santos ZaqueuLima3

🎯
View GitHub Profile
@ZaqueuLima3
ZaqueuLima3 / Fixture.kt
Last active September 25, 2023 12:51
Fixture
import kotlin.random.Random
import kotlin.reflect.KClass
import kotlin.reflect.KFunction
import kotlin.reflect.KType
/**
* You can find the method explanation here on this post:
* https://zaqueusantos.medium.com/an-easy-way-to-create-fixture-or-dummy-classes-for-your-android-tests-with-kotlin-9d6c619237d4
*/
@ZaqueuLima3
ZaqueuLima3 / handleSingleClick.kt
Created August 10, 2021 15:54
handleSingleClick in seOnClickListener
fun View.handleSingleClick(debounceTime: Long = 500L, callback: () -> Unit) {
if (this.isClickable) {
this.isClickable = false
callback()
this.postDelayed(
{
this.isClickable = true
},
debounceTime
)
@ZaqueuLima3
ZaqueuLima3 / git.md
Created September 26, 2018 16:30 — forked from leocomelli/git.md
Lista de comandos úteis do GIT

#GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda