Skip to content

Instantly share code, notes, and snippets.

View dab2020's full-sized avatar
😀
Just a regular day

Dayyan Abdullah dab2020

😀
Just a regular day
View GitHub Profile
@dab2020
dab2020 / gist:7ac83cbd79dbf22c989e9aa061dfceac
Last active February 21, 2024 18:58
Google Drive File type and generate downlaod link
function getFileDetailsAndGenerateLink() {
// Get the active Google Spreadsheet
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
// Get the data range of the sheet
var dataRange = sheet.getDataRange();
var data = dataRange.getValues();
// Iterate through each row starting from the second row (assuming headers in the first row)
for (var i = 1; i < data.length; i++) {
@dab2020
dab2020 / Script.gs
Created December 29, 2023 19:29
Google Appscript for Sending Emails to Delegates Along with a Team ID
function onOpen() {
var ui = SpreadsheetApp.getUi();
// Or DocumentApp, SlidesApp or FormApp.
ui.createMenu('BNA2024 Jarvis')
.addItem('Send Mail to All Teams', 'mail1')
.addToUi();
}
function mail1() {
var sheet = SpreadsheetApp.getActiveSheet();
@dab2020
dab2020 / README.md
Created June 29, 2022 06:59 — forked from Informatic/README.md
openlgtv webOS hacking notes

This is just a dump of some interesting undocumented features of webOS (3.8 specifically, on early 2018 4k LG TV) and other development-related tips.

Homebrew app ideas

@dab2020
dab2020 / Script.js
Created May 22, 2022 12:37
Finds the ammount of time since a article was published in Vanilla Java Script and also rounds it up into a whole number
<script type = "text/javascript" >
// By @dab2020 on github
// One month Time in ms (milliseconds)
var one_month = 1000 * 60 * 60 * 24 * 30
// To set present_dates to two variables
var present_date = new Date();
// 0-11 is Month in JavaScript
var publish_day = new Date(2021, 1, 1)