Skip to content

Instantly share code, notes, and snippets.

package com.wbertan.test
import io.reactivex.Observable
import io.reactivex.Single
import io.reactivex.schedulers.TestScheduler
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.toList
@WBertan
WBertan / test
Last active November 27, 2019 11:53
test
[I'm an inline-style link](https://app.clearscore.com/)
interface StateVM
abstract class BaseViewModel<T : StateVM> : ViewModel() {
protected val state: MutableLiveData<T> = MutableLiveData()
fun state(): LiveData<T> = state
}
sealed class State1 : StateVM {
object Loading : State1()
@WBertan
WBertan / deletarBranch.txt
Created November 29, 2018 13:40
Deletar branchs removidas remotamente
git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done

Keybase proof

I hereby claim:

  • I am wbertan on github.
  • I am wbertan (https://keybase.io/wbertan) on keybase.
  • I have a public key ASCQR4K1b0J9onbxk_PYt9ZnmQGhgQJj36kOMsqH6pPSxgo

To claim this, I am signing this object: