Skip to content

Instantly share code, notes, and snippets.

Avatar

Marcin Koziński marcin-kozinski

View GitHub Profile
@marcin-kozinski
marcin-kozinski / CycleActivity.kt
Last active Feb 15, 2016
Half-baked toy Cycle.js implementation on Android, based on first 10 lessons of André Staltz's egghead.io course
View CycleActivity.kt
import android.app.Activity
import android.os.Bundle
import android.view.View
import android.widget.TextView
import com.jakewharton.rxbinding.view.clicks
import com.jakewharton.rxbinding.widget.text
import rx.Observable
import rx.android.schedulers.AndroidSchedulers.mainThread
import rx.subjects.BehaviorSubject
import java.util.concurrent.TimeUnit.SECONDS