Digital Inspiration

Tech, a la carte

Latest articles

How to Move Files Uploads from Google Forms to a Specific Folder in Google Drive

The File Upload feature of Google Forms lets you receive files from form respondents directly in your Google Drive. You may add the File Upload question in your Google Form to receive PDF assignments from students, résumé applications, portfolio images from contestants, and so on.When a respondent uploads a file through Google Forms, the file are stored...

How to Send a File to Participants After they Submit your Google Form

When someone fills out your Google Form, you may want to send a file or two to the form respondent. For instance:A school teacher can send a Word document containing a copy of the answers to students who have completed the quiz.A musician can send her latest composition as an MP3 file to users who have completed her website survey built with Google...

JavaScript Design Patterns

This article is a summary of the various design patterns in JavaScript that help us create clean, easier to maintain code without polluting the global namespace.Object Literal Design PatternTo avoid the possibility of collusion with other variables of the same name in the global namespace, take all your variables and functionn and make them part of...

YouTube Email Alerts - Monitor Videos around your favorite Topics

The Google Alerts service makes it easy for you to monitor brand mentions and your favorite topics on the Internet. Just specify one or more keywords and Google will send an email notification when new web pages matching your search keywords are found on the web.The YouTube Email Alerts service is similar to Google Alerts but instead of scanning the...

How to Share User Properties between Google Apps Script Projects

The Properties Service of Google Apps Script is used by developers to store app configuration and user specific settings. The properties data is scoped to a specific user, or a specific project, and cannot be shared between different projects.The Email Form Notifications add-on also uses the Properties Service to store rules that are defined by the...

Useful JavaScript Functions

The code snippets are from a JavaScript course on Udemy.Create a function that can be invoked only once.const once = (fn, ...args) => { let called = false; return () => { if (called === false) { called = true; return fn(...args); } return 'Cannot call again'; }; }; const printName = (text, time) =>...

How to Create JSON Web Token (JWT) with Google Apps Script

You can use Google Script to create JSON Web Tokens (JWT) that can be provided to secure routes so that only authenticated requests that contain a valid token can connect to the APIs (e.g., the Zoom API).All JSON Web Tokens have three parts:The header that specifies the hash algorithm that is used for signing and decrypting the JWT.The payload in JSON...

Lite YouTube Embeds - A Better Method for Embedding YouTube Videos on your Website

It is easy to embed a YouTube video but you’ll be surprised to know how much extra weight a single YouTube video embed can add to your web pages. The browser has to download ~800 kB of data (see screenshot) for rendering the YouTube video player alone. And these files are downloaded even before the visitor has clicked the play button. ...

JavaScript Objects Quick Reference

Any object in JavaScript is a collection of key-value pairs. The key, also known as a property, is a unique string that maps to a value which may be a Boolean, String or another object.Let’s take a simple person object that contains properties like name, age and the employment status.const person = { name: 'John', age: 21, gender: 'Male', ...

Generate firebase.json file for Firebase Redirects

We recently moved the user guide for Mail Merge and Form Notifications from the website labnol.org to digitalinspiration.com. As with any domain move, we had to manually setup 301 redirects so that the audience are automatically redirected to the new website should they happen to click any of the links that still point to the old domain.Because the...

Discover, share and read the best on the web

Subscribe to RSS Feeds, Blogs, Podcasts, Twitter searches, Facebook pages, even Email Newsletters! Get unfiltered news feeds or filter them to your liking.

Get Inoreader
Inoreader - Subscribe to RSS Feeds, Blogs, Podcasts, Twitter searches, Facebook pages, even Email Newsletters!