This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Steps to Run | |
1-) Open appscripts and than go to project settings, enable show "appsscript.json" manifest file in editor | |
2-)Go to Editor and open appsscript.json replace it with following | |
{ | |
"timeZone": "America/New_York", | |
"exceptionLogging": "STACKDRIVER", | |
"oauthScopes": ["https://www.googleapis.com/auth/script.external_request", "https://www.googleapis.com/auth/webmasters", "https://www.googleapis.com/auth/spreadsheets.currentonly", "https://www.googleapis.com/auth/script.send_mail"], | |
"runtimeVersion": "V8" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Credit https://addyosmani.com/blog/puppeteer-recipes/ | |
const puppeteer = require('puppeteer'); | |
const devices = puppeteer.devices | |
const scrollPageToBottom = require ('puppeteer-autoscroll-down') | |
const Good3G = { | |
'offline': false, | |
'downloadThroughput': 2 * 1024 * 1024 / 8, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Sample Arrays | |
const A = [1, 3, 6, 4, 1, 2]; | |
const B = [-1 - 10, 0, 2, 3, 5]; | |
const C = [1, 2, 3, 500]; | |
function solution(test) { | |
//Remove duplicates | |
let unique = [...new Set(test)]; | |
//Sort from lowest value | |
let sorted = unique.sort(); |