Skip to content

Instantly share code, notes, and snippets.

On vacation

Jared Dobson jaredmdobson

On vacation
View GitHub Profile
View RealmExtensions.kt
import io.realm.*
import io.realm.kotlin.toFlow
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.*
* Returns a [Flow] with all of the results of the [RealmQuery], while drops every offer that is not
* loaded already. This makes it easy to be used with [kotlinx.coroutines.flow.first]. Be aware that
* the [Realm] object must be on a thread with a looper.
substack / package.json
Created Dec 6, 2013
using `npm run` to build and watch with less and browserify
View package.json
"name": "my-app",
"version": "0.0.0",
"dependencies": {
"browserify": "~2.36.1",
"less": "~1.5.1"
"devDependencies": {
"watchify": "~0.4.1",
"catw": "~0.2.0"