Skip to content

Instantly share code, notes, and snippets.

View tuyentran-agilityio's full-sized avatar

Tuyen Tran tuyentran-agilityio

View GitHub Profile
@tuyentran-agilityio
tuyentran-agilityio / charles-proxy-android.md
Created November 22, 2021 11:54 — forked from twaddington/charles-proxy-android.md
How to set up Charles Proxy for the Android Emulator.

Charles Proxy Android

Steps

1. Add the Network Security Configuration to your app

<network-security-config>
   <debug-overrides>
 
@tuyentran-agilityio
tuyentran-agilityio / FlowThrottleDebounce.kt
Created October 14, 2021 04:59 — forked from chibatching/FlowThrottleDebounce.kt
Throttle and Debounce on Flow Kotlin Coroutines
fun <T> Flow<T>.throttle(waitMillis: Int) = flow {
coroutineScope {
val context = coroutineContext
var nextMillis = 0L
var delayPost: Deferred<Unit>? = null
collect {
val current = SystemClock.uptimeMillis()
if (nextMillis < current) {
nextMillis = current + waitMillis
@tuyentran-agilityio
tuyentran-agilityio / introrx.md
Created October 2, 2020 02:21 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing