Skip to content

Instantly share code, notes, and snippets.

View dmattia's full-sized avatar

David Mattia dmattia

  • Transcend.io
  • United States
View GitHub Profile
@dmattia
dmattia / App.vue
Created June 4, 2019 06:43
Vue Firebase Demo
<template>
<div id="app">
<input v-model="path" type="text" />
<FireProvider :config="firebaseConfig">
<FireQuery :path="path" :shouldListen="false">
<template v-slot:error="{ errorMsg }">
Error: {{ errorMsg }}
</template>
@dmattia
dmattia / fb_auth.py
Created October 1, 2016 17:14
authenticate via token generator for firebase in python
import json
from firebase_token_generator import create_token
from firebase import Firebase
base_url = "https://sengo-fb3-prod.firebaseio.com/"
deal_url = base_url + 'deals'
active_deals_url = base_url + 'activeDeals/1/activeDeals'
future_deals_url = base_url + 'activeDeals/1/futureDeals'
inactive_deals_url = base_url + 'inactiveDeals/1/inactiveDeals'