This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| firebase emulators:start --import=./emulators-data --export-on-exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cleanString = (str: string) => str.replace(/[^\w ]/g, '').replace(/\s/g, ''); | |
| hash = (str: string) => str.split('').reduce((prev, curr) => (((prev << 5) - prev) + curr.charCodeAt(0)) | 0, 0); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -sL firebase.tools | upgrade=true bash | |
| curl -sL firebase.tools | uninstall=true bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <style> | |
| html, | |
| body { | |
| width: 100%; | |
| height: 100%; | |
| padding: 0px; | |
| margin: 0px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {Injectable} from '@angular/core'; | |
| import { | |
| deleteObject, | |
| getDownloadURL, | |
| percentage, | |
| ref, | |
| Storage, | |
| StringFormat, | |
| uploadBytes, | |
| uploadBytesResumable, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Injectable, NgZone } from '@angular/core'; | |
| import { | |
| Auth, signOut, user, signInWithEmailAndPassword, createUserWithEmailAndPassword, | |
| updateProfile, sendEmailVerification, sendPasswordResetEmail, User, authState, onAuthStateChanged, | |
| ActionCodeSettings | |
| // getAdditionalUserInfo, | |
| // OAuthProvider, | |
| // linkWithPopup, | |
| // unlink, | |
| // updateEmail, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Injectable } from '@angular/core'; | |
| import { Firestore, collectionData, collection, QueryConstraint } from '@angular/fire/firestore'; | |
| import { addDoc, CollectionReference, deleteDoc, doc, getDoc, query, setDoc, updateDoc } from '@firebase/firestore'; | |
| import { enableIndexedDbPersistence } from 'firebase/firestore'; | |
| @Injectable({ | |
| providedIn: 'root' | |
| }) | |
| export class FirestoreService { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const serviceAccountKey = require('./firebaseConfig'); | |
| const admin = require('firebase-admin'); | |
| admin.initializeApp({ | |
| credential: admin.credential.cert(serviceAccountKey), | |
| databaseURL: 'https://simplesapp-realtime.firebaseio.com', | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| type: 'service_account', | |
| project_id: 'project_id', | |
| private_key_id: 'private_key_id', | |
| private_key: 'private_key', | |
| client_email: 'client_email', | |
| client_id: 'client_id', | |
| auth_uri: 'https://accounts.google.com/o/oauth2/auth', | |
| token_uri: 'https://oauth2.googleapis.com/token', | |
| auth_provider_x509_cert_url: 'https://www.googleapis.com/oauth2/v1/certs', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Ansi 6 Color" : { | |
| "Red Component" : 0, | |
| "Color Space" : "sRGB", | |
| "Blue Component" : 0.78166204690933228, | |
| "Alpha Component" : 1, | |
| "Green Component" : 0.77425903081893921 | |
| }, | |
| "Tags" : [ |
NewerOlder