Skip to content

Instantly share code, notes, and snippets.

View bommels's full-sized avatar
:octocat:
Hello world

Terry bommels

:octocat:
Hello world
View GitHub Profile
@bommels
bommels / keybase.md
Created July 26, 2019 08:44
keybase.md

Keybase proof

I hereby claim:

  • I am bommels on github.
  • I am bommels (https://keybase.io/bommels) on keybase.
  • I have a public key ASCB3MDnjdckKpSp0K7lntb-5fBBE5MNgENMgji8Viet3Ao

To claim this, I am signing this object:

@bommels
bommels / firebase_snapshot_parent.js
Created November 10, 2016 21:20 — forked from anantn/firebase_snapshot_parent.js
Firebase: Get the parent of a snapshot.
function getParent(snapshot) {
// You can get the reference (A Firebase object) from a snapshot
// using .ref().
var ref = snapshot.ref;
// Now simply find the parent and return the name.
return ref.parent.key;
}
var testRef = new Firebase("https://example.firebaseIO-demo.com/foo/bar");
testRef.once("child_added", function(snapshot) {