Skip to content

Instantly share code, notes, and snippets.

Greg Soltis gsoltis

Block or report user

Report or block gsoltis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gsoltis
gsoltis / rx.firebase.js
Last active Mar 2, 2017
Quick Firebase / RxJS binding prototype
View rx.firebase.js
(function () {
var makeCallback = function(eventType, observer) {
if (eventType === 'value') {
return function(snap) {
observer.onNext(snap);
};
} else {
return function(snap, prevName) {
// Wrap into an object, since we can only pass one argument through.
observer.onNext({snapshot: snap, prevName: prevName});
@gsoltis
gsoltis / RxFirebase.java
Last active Mar 7, 2019
RxJava Bindings for Firebase
View RxFirebase.java
package com.firebase.client;
import com.firebase.client.core.Constants;
import rx.Observable;
import rx.Subscriber;
import rx.functions.Action0;
import rx.functions.Func1;
import rx.subscriptions.Subscriptions;
public class RxFirebase {
You can’t perform that action at this time.