This file contains hidden or 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
| // @OnlyCurrentDoc | |
| const BearerTokenKey = 'twitterBearerToken'; | |
| function onOpen() { | |
| SpreadsheetApp | |
| .getUi() | |
| .createMenu('Twitter') | |
| .addItem('Set Bearer token', 'helpers.requestBearerToken') | |
| .addItem('Sign out', 'helpers.logout') |
This file contains hidden or 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
| /** | |
| * @OnlyCurrentDoc | |
| */ | |
| YouTube.setTokenService(function(){ return getYouTubeService().getAccessToken(); }); | |
| // Read data from current sheet and create live events returning details back to sheet | |
| function schedule_events(){ | |
| var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("YT"); | |
| new cUseful.Fiddler(sheet) |
This file contains hidden or 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
| /** | |
| * SyntaxHighlighter | |
| * http://alexgorbatchev.com/SyntaxHighlighter | |
| * | |
| * SyntaxHighlighter is donationware. If you are using it, please donate. | |
| * http://alexgorbatchev.com/SyntaxHighlighter/donate.html | |
| * | |
| * @version | |
| * 3.0.83 (July 02 2010) | |
| * |
This file contains hidden or 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
| <!DOCTYPE html | |
| PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <meta name="viewport" content="initial-scale=1.0" /> | |
| <meta name="format-detection" content="telephone=no" /> | |
| <title style="-ko-bind-text: @titleText">[subject]</title> | |
| <style type="text/css"> |
This file contains hidden or 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
| /** | |
| * Generates a SHA-256 hash of a text input. | |
| * | |
| * @param {String||Array} value to SHA-256 hash. | |
| * @param {String} key to use to generate the hash with. | |
| * @return the SHA-256 hash of the value | |
| * @customfunction | |
| */ | |
| function HASH(value, key) { | |
| if (typeof key !== 'string'){ // test the key is a string |
This file contains hidden or 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
| // https://addyosmani.com/blog/essential-js-namespacing/ | |
| // extend.js | |
| // written by andrew dupont, optimized by addy osmani | |
| function extend(destination, source) { | |
| var toString = Object.prototype.toString, | |
| objTest = toString.call({}); | |
| for (var property in source) { | |
| if (source[property] && objTest == toString.call(source[property])) { | |
| destination[property] = destination[property] || {}; | |
| extend(destination[property], source[property]); |
This file contains hidden or 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
| blobToDataURL(blob, function(url){ | |
| var filename = 'recording_' + | |
| (new Date()) + | |
| '_.mp3'; | |
| google.script.run.withSuccessHandler(function(driveUrl){ | |
| $('ol.convertedList') | |
| .append('<li><strong> ' + filename + | |
| '</strong> <a href="'+driveUrl+'" target="_blank">Drive Link</a><br/>' + | |
| '<audio controls src="' + url + '"></audio>' + | |
| '</li>'); |
This file contains hidden or 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
| blobToDataURL(blob, function(url){ | |
| $('ol.convertedList') | |
| .append('<li><strong> recording_' + | |
| (new Date()) + | |
| '_.mp3</strong><br/>' + | |
| '<audio controls src="' + url + '"></audio>' + | |
| '</li>'); | |
| }) |
This file contains hidden or 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
| value | text | |
|---|---|---|
| Pacific/Midway | (GMT-11:00) Midway | |
| Pacific/Niue | (GMT-11:00) Niue | |
| Pacific/Pago_Pago | (GMT-11:00) Pago Pago | |
| Pacific/Honolulu | (GMT-10:00) Hawaii Time | |
| Pacific/Johnston | (GMT-10:00) Johnston | |
| Pacific/Rarotonga | (GMT-10:00) Rarotonga | |
| Pacific/Tahiti | (GMT-10:00) Tahiti | |
| Pacific/Marquesas | (GMT-09:30) Marquesas | |
| America/Anchorage | (GMT-09:00) Alaska Time |
This file contains hidden or 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
| import io | |
| import picamera | |
| import cv2 | |
| import numpy | |
| import requests | |
| import base64 | |
| def hitGA(faces): | |
| print("Sending to GA") | |
| requests.get("http://www.google-analytics.com/collect?v=1" \ |