Skip to content

Instantly share code, notes, and snippets.

View TheHappyDoggo's full-sized avatar

Elren Joseph Selerio TheHappyDoggo

View GitHub Profile
@TheHappyDoggo
TheHappyDoggo / Code.gs
Last active October 17, 2023 12:26
Automation for checking if the people submitted the form is already in the masterlist.
/**
* @OnlyCurrentDoc
*/
/**
* Change these to match the column names you are using for email
* recipient addresses and email sent column.
*/
const RECIPIENT_COL = "Email Address";
const EMAIL_SENT_COL = "Email Sent";
@TheHappyDoggo
TheHappyDoggo / Code.gs
Last active October 17, 2023 04:57
App Script for Automated Sending of Email from Forms v3
/**
* Change these to match the column names you are using for email
* recipient addresses and email sent column.
*/
const RECIPIENT_COL = "Email Address";
const EMAIL_SENT_COL = "Email Sent";
const FULL_NAME_COL = "Full Name";
const SOCIETY_COL = "Society";
const SYMA = "1gTO3HoABYzf1EcoSTZm06KoiYsR46LC6";
const JPIA = "15jV50LLP9UWI2X_fCQyTM0SPft4ejDNp";
@TheHappyDoggo
TheHappyDoggo / Code.gs
Last active October 16, 2023 13:34
App Script for Automated Sending of Email from Forms v2
// To learn how to use this script, refer to the documentation:
// https://developers.google.com/apps-script/samples/automations/mail-merge
/*
Copyright 2022 Martin Hawksey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
@TheHappyDoggo
TheHappyDoggo / Code.gs
Last active October 12, 2023 17:55
App Script for Automated Sending of Email from Forms
// To learn how to use this script, refer to the documentation:
// https://developers.google.com/apps-script/samples/automations/mail-merge
/*
Copyright 2022 Martin Hawksey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
@TheHappyDoggo
TheHappyDoggo / index.jsp
Created October 14, 2022 06:52
ui for personal info
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" crossorigin="anonymous"></script>
<title>Hi</title>
<style>
<?php
class InfixCalculator
{
public $infix;
public $postfix;
public $final_ans;
public $nums = [];
public $operators = [];
@TheHappyDoggo
TheHappyDoggo / index.php
Created September 29, 2022 03:16
ui for the infix calculator
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Infix Calculator</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.css">
<script src="jquery-3.6.1.min.js"></script>
<?php
class InfixCalculator
{
public $infix;
public $postfix;
public $final_ans;
public $nums = [];
public $operators = [];
# input with:
# signed numbers,
# decimal,
# multiple digits,
# with parenthesis,
# whitespace and no whitespace
# infix = "1 + 2.5 - 3* 4 +(5 ^ 6) * 7 / 8 / 9 * -1 + 123"
# postfix: 1 2.5 + 3 4 * - 5 6 ^ 7 * 8 / 9 / -1 * + 123 +
# final ans: -1404.59722222
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>