This is a snippet that uses firebase's firebase-admin
to initialize multiple firebase projects in one admin application.
import 'firebase';
function copyFbRecord(oldRef, newRef) { | |
return Promise((resolve, reject) => { | |
oldRef.once('value').then(snap => { | |
return newRef.set(snap.val()); | |
}).then(() => { | |
console.log('Done!'); | |
resolve(); | |
}).catch(err => { | |
console.log(err.message); | |
reject(); |
This is a snippet that uses firebase's firebase-admin
to initialize multiple firebase projects in one admin application.
import 'firebase';
const mock = (success, timeout = 1000) => { | |
return new Promise((resolve, reject) => { | |
setTimeout(() => { | |
if(success) { | |
resolve(); | |
} else { | |
reject({message: 'Error'}); | |
} | |
}, timeout); | |
}); |
<table> | |
<!-- Header section --> | |
<thead style="display: table-header-group;"> | |
<tr> | |
<td> | |
<div style="height: 100px; background: rgb(76, 164, 246);"> | |
<h1>Header</h1> | |
</div> | |
</td> | |
</tr> |
<table> | |
<!-- Header section --> | |
<thead> | |
<tr> | |
<td> | |
<div style="height: 100px; background: rgb(76, 164, 246);"> | |
<h1>Header</h1> | |
</div> | |
</td> | |
</tr> |
This is a snippet that uses firebase's firebase-admin
to initialize multiple firebase projects in one admin application.
require('firebase');