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
/** Tween a number, increment number from 0 to a desired target within a specified duration in seconds. Get count number in callback function. | |
* @param {number} target | |
* @param {number} duration | |
* @param {function} callback | |
* @returns {Promise<void>} | |
* @example | |
* await tweenNumber({ target: 100, duration: 1 }, (n) => console.log(n)); | |
*/ | |
const tweenNumber = async ({ target, duration }, callback = (n = 0) => {}) => { | |
let count = 0; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
function getSubmissions() { | |
var form = FormApp.openById('YOUR-FORM-ID'); // Paste your form ID here | |
var submissions = []; | |
var formResponses = form.getResponses(); | |
// Loop through all responses | |
for (var i = 0; i < formResponses.length; i++) { | |
var formResponse = formResponses[i]; | |
var itemResponses = formResponse.getItemResponses(); | |
// Get timestamp of response |
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
{ | |
"provincia": [ | |
{ | |
"nombre": "Bocas del Toro", | |
"ced": "1", | |
"iso_3166_2": "PA-1", | |
"capital": "Bocas del Toro", | |
"distrito": [ | |
{ | |
"nombre": "Almirante", |
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
{ | |
"countries" : [ | |
{ | |
"name_en": "Afghanistan", | |
"name_es": "Afganistán", | |
"continent_en": "Africa", | |
"continent_es": "África", | |
"capital_en": "Kabul", | |
"capital_es": "Kabul", | |
"dial_code": "+93", |
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
' Title: Cloudflare.vb | |
' Author: @Yizack | |
' Description: Visual Basic class for purge files programmatically with the Cloudflare API. | |
' Date: 2019/05/15 | |
Imports System.Net | |
Imports System.Text | |
Public Class Cloudflare | |
' Example use: |