Skip to content

Instantly share code, notes, and snippets.

View RR-Helpdesk's full-sized avatar
💭

Helpdesk RR-Helpdesk

💭
View GitHub Profile
@RR-Helpdesk
RR-Helpdesk / Get Background HEX Color Function
Last active June 10, 2023 15:31
Google Sheets Custom Functions #sheets #gas #functions
/**
* Returns the Hexadecimal value of a cell's background color.
*
* @param {number} row The cell's row number.
* @param {number} column The cell's column number.
* @return The Hexadecimal value of the cell's background color.
* @customfunction
*/
function BGHEX(row, column) {
var background = SpreadsheetApp.getActive().getDataRange().getCell(row, column).getBackground();
@RR-Helpdesk
RR-Helpdesk / create_dir_folders.gs
Created July 18, 2023 09:25
Create Directory of Folders #gas #GAS #GoogleAppScript #Google
/*
Some Global Variables to make it easier to keep a track of changing column
positions, etc.
*/
// 'Folder Name' column number
var folderNameCol = 1;
// 'Folder Link' column number
var folderLinkCol = 2;
@RR-Helpdesk
RR-Helpdesk / Postgres
Last active October 13, 2023 07:46
Postgres Snippets
DROP TABLE "public"."varCalcValue";
CREATE TABLE "public"."varCalcValue" (
"id" bigint NOT NULL GENERATED ALWAYS AS IDENTITY,
"varCalcValue" VARCHAR(50) NOT NULL,
"createdOn" TIMESTAMP NULL,
"updatedOn" TIMESTAMP NULL
);