Skip to content

Instantly share code, notes, and snippets.

View emanzanoaxa's full-sized avatar

Emilio Manzano Marcos emanzanoaxa

  • AXA Go
  • Barcelona
View GitHub Profile
@emanzanoaxa
emanzanoaxa / CustomRxFactory.java
Created April 23, 2017 18:58
Custom realm observable factory without retaining realm instances
import io.realm.DynamicRealm;
import io.realm.DynamicRealmObject;
import io.realm.Realm;
import io.realm.RealmChangeListener;
import io.realm.RealmList;
import io.realm.RealmModel;
import io.realm.RealmObject;
import io.realm.RealmQuery;
import io.realm.RealmResults;
import io.realm.rx.RealmObservableFactory;
@emanzanoaxa
emanzanoaxa / AbstractRealmQueryObservable.java
Created November 21, 2016 13:47
Observable query from realm.
import java.util.List;
import io.realm.Realm;
import io.realm.RealmObject;
import io.realm.RealmQuery;
import io.realm.RealmResults;
import io.realm.Sort;
import rx.Observable;
/**
@emanzanoaxa
emanzanoaxa / 0_reuse_code.js
Created November 17, 2016 13:43
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console