Skip to content

Instantly share code, notes, and snippets.

@aidotno
aidotno / appsScript_ListFilesFolders_ver.2.js
Created February 14, 2021 13:53 — forked from mesgarpour/appsScript_ListFilesFolders_ver.2.js
[Google Apps Script] List all files & folders in a Google Drive folder, & write into a speadsheet
/*
* Copyright 2017 Mohsen Mesgarpour
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@aidotno
aidotno / find or fail
Last active February 8, 2021 06:02
[find or fail] Get Or Create Sub Folder if not exist #javascript
function getOrCreateSubFolder(childFolderName, parentFolderName) {
var parentFolder, parentFolders;
var childFolder, childFolders;
// Gets FolderIterator for parentFolder
parentFolders = DriveApp.getFoldersByName(parentFolderName);
/* Checks if FolderIterator has Folders with given name
Assuming there's only a parentFolder with given name... */
while (parentFolders.hasNext()) {
parentFolder = parentFolders.next();
}
@aidotno
aidotno / gist:9ef3a9c0e601e5509b9d38656c1a9384
Created September 30, 2020 06:37 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@aidotno
aidotno / CronRunCommand.php
Created July 27, 2020 09:38 — forked from sisou/CronRunCommand.php
Cron job command for Laravel 4.2
<?php
# Cron job command for Laravel 4.2
# Inspired by Laravel 5's new upcoming scheduler (https://laravel-news.com/2014/11/laravel-5-scheduler)
#
# Author: Soren Schwert (GitHub: sisou)
#
# Requirements:
# =============
# PHP 5.4
@aidotno
aidotno / README.md
Created April 18, 2020 17:06 — forked from CodingDoug/README.md
Copying data from Firebase Realtime Database to a Google Sheet in real time via Cloud Functions
@aidotno
aidotno / exportSpreadsheet.gs
Created February 27, 2020 09:43 — forked from Spencer-Easton/exportSpreadsheet.gs
Example on how to export a Google sheet to various formats, includes most PDF options
function exportSpreadsheet() {
//All requests must include id in the path and a format parameter
//https://docs.google.com/spreadsheets/d/{SpreadsheetId}/export
//FORMATS WITH NO ADDITIONAL OPTIONS
//format=xlsx //excel
//format=ods //Open Document Spreadsheet
//format=zip //html zipped
@aidotno
aidotno / imap-gmail
Created July 23, 2019 08:57 — forked from aikchun/imap-gmail
IMAP PHP gmail attachment extractor
<?php
/**
*
* Gmail attachment extractor.
*
* Downloads attachments from Gmail and saves it to a file.
* Uses PHP IMAP extension, so make sure it is enabled in your php.ini,
* extension=php_imap.dll
@aidotno
aidotno / GIF-Screencast-OSX.md
Created November 22, 2018 08:21 — forked from spicycode/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: