Skip to content

Instantly share code, notes, and snippets.

View mukandrew's full-sized avatar
🦾
working hard, working smart

Murillo Andrew mukandrew

🦾
working hard, working smart
View GitHub Profile
package com.mynuapp;
import android.app.AlertDialog;
import android.app.Service;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.location.Address;
import android.location.Geocoder;
@Eduardo-Nunes
Eduardo-Nunes / LazyObserver.kt
Last active June 30, 2020 17:24
Lifecycle observer lazy instance with Kotlin
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.Observer
infix fun <T : Any?> LifecycleOwner.lazyObserver(func: (T) -> Unit): Lazy<Observer<T>> {
return lazyOf(Observer(func))
}
@jemshit
jemshit / proguard-rules.pro
Last active February 18, 2025 12:50
Proguard Rules for Android libraries
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
-keepclassmembers class fqcn.of.javascript.interface.for.webview {
public *;
}
### RxJava, RxAndroid (https://gist.github.com/kosiara/487868792fbd3214f9c9)
-keep class rx.schedulers.Schedulers {
public static <methods>;
@lopspower
lopspower / README.md
Last active May 16, 2025 20:12
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

Github Two-Factor Authentication (2FA) for Brazil via SMS

The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console. The option Brazil +55 will be the first on the list, already selected:


🇧🇷 [pt-BR]

Autenticação em dois fatores (2FA) do GitHub para o Brasil via SMS