Skip to content

Instantly share code, notes, and snippets.

View stardustxx's full-sized avatar

Eric Lee stardustxx

View GitHub Profile
@stardustxx
stardustxx / getData 1
Last active December 25, 2017 23:03
DOMParser
async function getData() {
let url = "your api url";
let data = await (await fetch(url)).json();
let productReviewTemplate = $('#template').html();
let template = _.template(productReviewTemplate);
$("#container").append(template({productReviews : data}));
}
@stardustxx
stardustxx / app.js
Last active January 7, 2023 22:09
Nodejs Firebase Storage Sample
const express = require('express');
const app = express();
const googleStorage = require('@google-cloud/storage');
const Multer = require('multer');
const storage = googleStorage({
projectId: "<Firebase Project ID",
keyFilename: "<path to service accounts prviate key JSON>"
});