This is a snippet that uses firebase's firebase-admin
to initialize multiple firebase projects in one admin application.
import 'firebase';
[#assign black_list = ["class", "request", "getreader", "getinputstream", "writer"] /] | |
[#macro dump key data] | |
[#if data?is_enumerable] | |
enumerable:<b>${key}</b> | |
[@printList data,[] /] | |
[#elseif data?is_hash_ex] | |
hash_ex:<b>${key}</b> | |
[@printHashEx data,[] /] | |
[#else] |
{ | |
"availableLanguageIds": [ | |
"en_US" | |
], | |
"defaultLanguageId": "en_US", | |
"fields": [ | |
{ | |
"label": { | |
"en_US": "Title" | |
}, |
This is a snippet that uses firebase's firebase-admin
to initialize multiple firebase projects in one admin application.
import 'firebase';
If you are use Unix/Linux create a bash script with a loop. In this case I want to backup the extensions list and install again:
First create a list of the extensions:
$ code --list-extensions > extensions.txt
Create a bash script for example with the name vscode-extension-install.sh
and input the following code:
<#-- dump.ftl | |
-- | |
-- Generates tree representations of data model items. | |
-- | |
-- Usage: | |
-- <#import "dump.ftl" as dumper> | |
-- | |
-- <#assign foo = something.in["your"].data[0].model /> | |
-- | |
-- <@dumper.dump foo /> |