Skip to content

Instantly share code, notes, and snippets.

@CreaturesInUnitards
CreaturesInUnitards / bands.json
Created December 8, 2022 14:22
bands, in json form
[{"name":"Led Zeppelin","img_url":"http://static.thetoptens.com/img/lists/335.jpg","thumb1":"http://ultimateclassicrock.com/files/2014/10/Led-Zeppelin1.jpg?w=630","thumb2":"http://ppcorn.com/us/wp-content/uploads/sites/14/2016/01/Led-Zeppelin-pop-art-ppcorn.jpg","thumb3":"http://www.worldinternetrankings.com/uploads/bestledzeppelinsong_3712034663.jpg","info":"Led Zeppelin were an English rock band formed in London in 1968. The group consisted of Robert Plant (Vocal), Jimmy Page (Guitar), John Paul Jones (Bass, Keyboard) and John Bonham (Drums). The band's heavy, guitar-driven sound, rooted in blues and psychedelia on their early albums, has earned them recognition as one of the progenitors of heavy metal. They achieved significant commercial success with albums such as Led Zeppelin (1969), Led Zeppelin II (1969), Led Zeppelin III (1970), Led Zeppelin IV (1971), Houses of the Holy (1973), and Physical Graffiti (1975). Their song ‘Stairway to Heaven’ is among the most popular and influential rock music of all t

Keybase proof

I hereby claim:

  • I am creaturesinunitards on github.
  • I am portrayme (https://keybase.io/portrayme) on keybase.
  • I have a public key ASAfYnBWoW-qckP5oqcqJ5teseXpRzxlWBirnwTr2tqQjAo

To claim this, I am signing this object:

@CreaturesInUnitards
CreaturesInUnitards / FBObserver.js
Created February 3, 2018 16:39
Firebase Firestore Collection Observer
const FBObserve = (collectionName, crudFn, redrawFn) => firebase.firestore().collection(collectionName)
.onSnapshot((snap) => {
snap.docChanges.forEach((change) => {
(new Promise((resolve) => { crudFn(change).then(resolve) }))
.then(redrawFn).catch((e) => console.log(e, 'Your CRUD function must return a promise.'))
})
})