Skip to content

Instantly share code, notes, and snippets.

View marcustw's full-sized avatar
🏠
Working from home

Marcus marcustw

🏠
Working from home
  • AMBiz
  • Singapore
  • 23:28 (UTC +08:00)
View GitHub Profile
@marcustw
marcustw / index.js
Last active October 18, 2021 09:58
init code for firebase functions
const functions = require("firebase-functions");
const admin = require('firebase-admin');
const nodemailer = require('nodemailer');
const cors = require('cors')({origin: true});
admin. initializeApp();
@marcustw
marcustw / index.js
Last active October 18, 2021 14:39
transport-service
const noreplyEmail = "Insert_Your_FROM_Email@gmail.com";
const noreplyPassword =
"Insert_Your_FROM_Email_Password";
const domain = "gmail";
const transporter = nodemailer.createTransport({
service: domain,
auth: {
user: noreplyEmail,
pass: noreplyPassword,
@marcustw
marcustw / index.js
Last active October 18, 2021 13:26
cloud-function
const region = "asia-east1";
const emailSubject = "Welcome to WaterTop";
const emailTemplate = `<p>Dear Student,</p> <br/>
<p>Welcome to School of WaterTop! Thank you for
choosing WaterTop as one of your choices and
we are pleased to have you here.</p> <br />
<br/>
<p>Best Regards,</p>
<p>WaterTop</p>
`;
@marcustw
marcustw / certificate
Created June 7, 2023 01:30
NUS Cert & Transcript
{
"cipherText": "t9BkZkVW7dAzZJFPVpz0o6uYL20utMT854qZTzdrEELhoOXgwyq4Z5xyaX/1qX9n2zO3xEV5rJtSTyaVjbNCaf5eLSCVDhAGYCex/KmGsjqwAO9+DO62aFXPZVREL9WNio2MO1i0MB6RbVQfIYCu3GYiII4NnYaaPnVTjVaZB2G+aT1y715Z2Fj4xiDOZzaD2Tc7dhCbOWaPV+Ipf69YYpzaID1wQJi0WTzU/SAaYa/uWw7lJNYhatfhlyd+v29Cmye2aJF14yQsvtqsN4y8ZcG3LmXzKkTK11jhH1NDhRvTMIG9csWGUzml39nbw4+yQaVCxzn+XQNs8JkShq5gikE7Def+0LCMq2UoccdelN2Jnkg/TgCvXlxQevOUm5IdyN8dFWKy8lzQxhenrwJViOprTJ9urQYlrlJ5KkUT7vgtLTWoGrp7ZxZVDIq52bTpOepJqE+7gk91TwQtt+sVHaCKbw0ao/+aLQFDjoV4clJ8oAXSr3lF7R+eR+uJjaBOi/Mkp9ADTQoJQ5DFPzLuBYv7KEBAOFD8Et6+jOGnap9xnBG3ht5CbCX/bD034KFosqmrNKrrRy6t5zph4r4hfibZwIqhguhvT1uPNHZ/EAUW/KROGAlclTXmI5rC2kN9VpDwCVZioxohySVvJ9G5FNF0S4cQ3UlukL10AzEznCkinMx1ry2h2PJ+B0m9yAU4JBmA1Gswv7v6ojbBJdkFuGkBSFelX7v5DtR+WtreAPIcvu8/oGlkNqzGj+o/8lQmicOFKF9+1MEbwbSmbqSiEO7YC5ZzUHsCMRF8uYi51yC3W3jPkTv/jNoVGHF1RiD2Zr+7SUMS95WsFMK00SCORhsIX3LppWkXQE6BIRz67ZfNcbkfTMd/cUNAEAVO/gyjCSExspa/JbIGJMpV1kw7T3jmxytSjVUMn9ulm2+njlL0+XgSVIHfNr4xa4szItKQApgC/H7FbNah1+OMropRjEuicXu6kx04CU7f0tzt8D4T7