Skip to content

Instantly share code, notes, and snippets.

View thgMatajs's full-sized avatar
🏠
Working from home

Thiago Matajs thgMatajs

🏠
Working from home
View GitHub Profile
@rodolfoizidoro
rodolfoizidoro / favoritos.md
Last active February 11, 2026 13:27
Lista de estudos nas férias . Importar no Chrome.
Name Link
Download Favoritos para importa no Google Chrome https://gist.github.com/rodolfoizidoro/f0d5051d9109eb7dc70c2dfcf42a67aa
MVVM with Kotlin — Android Architecture Components, Dagger 2, Retrofit and RxAndroid https://proandroiddev.com/mvvm-with-kotlin-android-architecture-components-dagger-2-retrofit-and-rxandroid-1a4ebb38c699
30 summertime Android libraries and tools which you don’t want to miss in 2018 https://medium.com/@mmbialas/30-summertime-android-libraries-and-tools-which-you-dont-want-to-miss-in-2018-fab053d69503
KeepSafe/TapTargetView An implementation of tap targets from the Material Design guidelines for feature discovery https://github.com/KeepSafe/TapTargetView
Material Intro View is a showcase android library. https://github.com/iammert/MaterialIntroView
Modern background execution in Android https://android-developers.googleblog.com/2018/10/modern-background-execution-in-android.html?m=1
Dominando o Data Binding no Android https://pt.slideshare.
@cesarferreira
cesarferreira / MyRecyclerViewAdapter.kt
Last active July 1, 2021 04:24
DiffUtils kotlin extension
class DeliveryWindowsAdapter : RecyclerView.Adapter<DeliveryWindowsAdapter.ViewHolder>() {
var items: List<DeliveryWindowUiModel> by Delegates.observable(emptyList()) { _, oldList, newList ->
autoNotify(oldList, newList) { o, n -> o.id == n.id }
}
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
val deliveryWindow = items[position]
holder.title.text = deliveryWindow.title
holder.price.text = deliveryWindow.friendlyPrice
@kvdesa
kvdesa / PhoneNumberFormatter.kt
Last active July 12, 2022 16:13
Android EditText mask for Brazilian and American phone numbers written in Kotlin.
package br.socialcondo.app.profile
import android.text.Editable
import android.text.TextWatcher
import android.widget.EditText
import java.lang.ref.WeakReference
/**
* Created by kevin on 31/01/18.
* Adapted from:
@elvismetaphor
elvismetaphor / CustomSetter.java
Last active July 7, 2022 07:15
Show how to implement MVVM with Data Binding while using Glide
package edu.self.binding;
import android.databinding.BindingAdapter;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
public class CustomSetter {
@jonikarppinen
jonikarppinen / 1_RxJava-connectivity-status-example.md
Last active November 23, 2022 18:16
Example of listening to connectivity status in Android and reacting to going offline. (Subscription, Observable, Observer, PublishSubject are from RxJava.)

Example of using RxJava to listen to connectivity status in Android

You could use the same approach to listen to any status, but this example includes network connectivity specifics too (ConnectionChangeReceiver and AndroidUtils.isConnected).

@leocomelli
leocomelli / git.md
Last active March 18, 2026 13:24
Lista de comandos úteis do GIT

GIT

Estados

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

Ajuda