Skip to content

Instantly share code, notes, and snippets.

View 501A-Designs's full-sized avatar
📐
crafting interfaces

501A 501A-Designs

📐
crafting interfaces
View GitHub Profile
@501A-Designs
501A-Designs / Code.gs
Created November 10, 2021 00:26
Takes files from a folder and attaches it to a Gmail draft
function doGet(){return HtmlService.createHtmlOutputFromFile("index")}
function myFunction() {
var folderId = ""; // folder with docs
var moveToFolderId = ""; // folder to move PDF
var doneFolderId = ""; // folder with docs that have already been converted to PDF (to reduce duplication)
var filesN = DriveApp.getFolderById(folderId).getFiles();
var downloadedFolder = DriveApp.getFolderById(moveToFolderId);
var doneFolder = DriveApp.getFolderById(doneFolderId);
@501A-Designs
501A-Designs / Code.gs
Created November 10, 2021 00:04
Google Docs from a folder and converts it into a PDF
function doGet(){return HtmlService.createHtmlOutputFromFile("index")}
function myFunction() {
var folderId = " "; // folder with docs
var moveToFolderId = " "; // folder to move PDF
var doneFolderId = " "; // folder with docs that have already been converted to PDF (to reduce duplication)
var filesN = DriveApp.getFolderById(folderId).getFiles();
var downloadedFolder = DriveApp.getFolderById(moveToFolderId);
var doneFolder = DriveApp.getFolderById(doneFolderId);
@501A-Designs
501A-Designs / chromedino.js
Last active November 8, 2021 10:00
Chrome Dino
// A fun trick when your internet is cut
let dino = Runner.instance_;
dino.currentSpeed = 150;
dino.tRex.groundYPos = 15;