Skip to content

Instantly share code, notes, and snippets.

View JonReppDirectOneDesign's full-sized avatar

Jon Repp JonReppDirectOneDesign

  • DirectOneDesign
  • Akron, OH
View GitHub Profile
/*
This overall script is designed to bulk create Google Sheets from data within a Google Sheet.
*/
function getSpreadsheetData() {
// Log starting of the script
logEvent('Script has started');
// get current spreadsheet
function test_parse() {
var file = SpreadsheetApp.getActive();
var sheet = file.getSheetByName('Sheet1'); // change
var sets = {
rangeParse: sheet.getRange('L2:L16429'), // change
rangeResult: sheet.getRange("M2"), // change
func_parse: parseOkkoFilmToGetHorizontalPoster_ // change / create your function
};
parseUrls_(sets);
}
@Max-Makhrov
Max-Makhrov / Timer.gs
Created April 23, 2021 14:28
Timer is a code for monitoring onMinute triggers
function readTimer() {
// [ 1 ]. Get report
var tags = ['onMinute_admin', 'onMinute_worker', 'onMinute_importer', 'onMinute_sizif1', 'onMinute_sizif2'];
var report = getTimerReps_(tags);
console.log(report);
// => gives 2D Array with a report about executions.
// So U can write it on Spreadsheet.
// [ 2 ]. Gat all data from logs
@thealchen
thealchen / loading_bar.js
Created April 13, 2021 18:19
Create a loading bar while you're retrieving results from an API with Google Apps Script
// Create a loading bar in your Google Sheet using Google Apps Script
// Author: Al Chen (al@coda.io)
// Last Updated: April 13th, 2021
// Notes: Assumes you are using the V8 runtime (https://developers.google.com/apps-script/guides/v8-runtime)
// Example Google Sheet: https://docs.google.com/spreadsheets/d/1ngvYKEMunqCVufR10rlK42iENAERp-uyiPN_aiq-MKo/edit?usp=sharing
SOURCE_SHEET_ID = 'YOUR_GOOGLE_SHEETS_ID'
SOURCE_WORKSHEET_NAME = 'YOUR_WORKSHEET_NAME'
function loop() {
/*
This overall script is designed to bulk create Google Folders from data within a Google Sheet
and add relevant permissions (if applicable).
*/
function getSpreadsheetData() {
// Log starting of the script
logEvent('Script has started');
/*
Global variables to be accessed in other parts of the scripts.
*/
// get spreadsheet
var ss = SpreadsheetApp.getActiveSpreadsheet();
// get Welcome sheet
var welcomeSheet = ss.getSheetByName('Welcome');
// get values from Welcome sheet
@mhawksey
mhawksey / inlineimage.gs
Last active April 2, 2021 05:50
Handling inline images and attachments so they can be included in the merge
// Handling inline images and attachments so they can be included in the merge
// Based on https://stackoverflow.com/a/65813881/1027723
// Get all attachments and inline image attachments
const msg = draft.getMessage();
const allInlineImages = msg.getAttachments({includeInlineImages: true, includeAttachments: false});
const attachments = msg.getAttachments({includeInlineImages: false});
const htmlBody = msg.getBody();
// Create an inline image object with the image name as key
// (can't rely on image index as array built based on insert order)
/*
create HTML modal dialogue box that won't suspend script.
https://developers.google.com/apps-script/reference/base/ui#showmodaldialoguserinterface,-title
*/
function showHTMLPopup() {
var htmlOutput = HtmlService
.createHtmlOutput('<p>Congratulations this was a success.</p>')
.setWidth(320)
owner repo description language stargazers
JanDeDobbeleer oh-my-posh A prompt theming engine for Powershell PowerShell 4780
sourcegraph sourcegraph Universal code search (self-hosted) Go 4265
ElaWorkshop awesome-cn-cafe A curated list of awesome coffee places in China. JavaScript 747
ajeetdsouza zoxide A faster way to navigate your filesystem Rust 1913
looly hutool A set of tools that keep Java sweet. Java 17423
willmcgugan rich Rich is a Python library for rich text and beautiful formatting in the terminal. Python 20112
rsms markdown-wasm Markdown parser and HTML generator implemented in WebAssembly. based on md4c C 742
Higurashi-kagome wereader 一个 Chrome / Firefox 插件:主要用于微信读书做笔记,对常使用 Markdown 做笔记的读者尤其有帮助。 JavaScript 67
netdata netdata Real-time performance monitoring. done right! https://www.netdata.cloud C 51023
@obhular
obhular / LASTUPDATE.txt
Last active March 23, 2021 02:27
LASTUPDATE
/**
* Check When Array was last Edited
*
* @param array Select the Array you want to check to see when it is updated i.e "A5:B5"
* @param timestampCell Select the Cell you want to put the timestamp for when array updated i.e "A1"
* @customfunction
*/
function LASTEDIT(array,timestampCell) {