#code
Last week I submitted a pull request to the DefinitelyTyped repository for the Google Drive Picker API. Not a big deal in itself, but these types are generated from the same source as the Google Drive Picker reference documentation and should be more correct and consistent than the community types that were previously in the DefinitelyTyped repository.
Recently I had to clarify some confusion around the title and name of a Google Form. Here is a quick explanation of the difference between the two.
Learn how to programmatically convert, open, and edit Microsoft Word .docx files using Google Apps Script and the Drive API.
Save the date for the Google Workspace Developer Summits in 2024! Boston - September 12, 2024 and Berlin - September 17, 2024.
Use the Spreadsheets v4 API to set the importFunctionsExternalUrlAccessAllowed property to true and allow access to external URLs without requiring user consent.
You can use WebAssembly with Google Apps Script! This post will cover how to do that and provide a comprehensive guide on how to get started.
A SvelteKit store that automatically converts slugs to UUIDs from the URL path parameters.
Learn about the different options for making API calls in Google Apps Script web apps: `google.script.run` and GET/POST endpoints (`doGet` and `doPost`). Understand their strengths and weaknesses to choose the best approach for your project.
Working with binary files like PDFs or images in Google Drive with Google Apps Script can be a bit tricky due to scopes. Here is a comparison of the three main ways to get the Blob of a file in Google Drive and the scopes required.
A comparison of key-value store options in Google Apps Script, including PropertiesService, CacheService, Firestore, and Sheet Developer Metadata.
Ping results to Google Cloud regions and short code snippet demonstrating how to measure latency from Google Apps Script.
A pattern for persisting the workspace files between parallel jobs in a GitHub Workflow.
A comparison of the WinterCG Minimum Common Web Platform API draft with the Apps Script V8 runtime.
I will be giving a talk at Google Next 2024 on how to use Rust, Python and WASM to extend Google Apps Script.
Google Apps Script is based on the V8 engine and supports the use of Promises, async and await. However, there are almost no APIs available that are asynchronous except for the WebAssembly API.
Deploying Cloudflare workers to dev, staging, and prod with Wrangler and automatically promoting with GitHub actions.
Cleanup repositories on GitHUb by deleting old forks.
Google Drive broke the ability to embed images with the /uc path. Here's how to embed images from Google Drive in your website.
Firestore can be a powerful tool when using Apps Script. This post shows how to use the [Firestore REST API] in Apps Script.
Avoid downloading private service account keys by using impersonation in Apps Script to obtain access tokens.
A simple Dockerfile for a Rust project that caches dependencies and uses a minimal Debian image.
A short code snippet demonstrating how to generate text with the Gemini Pro Rest API in Apps Script.
A generic Apps Script memoization function can be written to cache any function.
How to use the Vertex AI API in Apps Script to make predictions on your data or use it in any of your other Google Workspace processes.
I created a n8n workflow to implement a Google Chat App that translates messages.
Both Add-on types have their own strengths and weaknesses. Combining them could be a powerful way to build Add-ons for Google Workspace but with some caveats.
Playing whack-a-mole with the rust compiler is both frustrating and a great learning experience.
This blog post demonstrates how to implement email magic links for a login page using Cloudflare Pages, Cloudflare Functions, and Sendgrid. It provides code examples and explanations for each step of the process, including form creation, token generation and validation, session management, and user authentication.
Using an offline Oauth2 flow to get Google user credentials for use as application default credentials in APIs that do not allow service accounts or API keys and require user credentials.
A simple endpoint to verify a Google access token
There is a point between manual tasks and automation where nothing gets done.
Capture all user activity in a Firestore collection using Audit Logs, Pub/Sub, and Cloud Functions.
A basic pattern for strongly typing Yup schemas in TypeScript using conditionals.
A simple strategy to effectively speed up use of Playwright in GitHub Actions with caching.
A basic pattern for passing environment variables to the docker/build-push-action from a GitHub secret.
A pattern for authenticating to gcr.io from docker/build-push-action.
An app I built using Svelte, Firebase, and the Strava API.
Using the GitHub CLI to unsubscribe from repositories.
Using Google Apps Script as part of my open source workflow.
A simple GitHub workflow to automatically approve and merge Dependabot pull requests.
Short code snippet showing how I rebased all Dependabot pull requests across a GitHub org.
DevRel is a lot things: marketing, engineering, product management, support; my experience as a Developer Relations Engineer at Google.
Automating related posts in Eleventy with term frequency-inverse document frequency and eleventy-plugin-related.
It is easy to sync branches in a GitHub workflow without using a third party GitHub Action.
Catching the Eleventy Lighthouse obsession bug!
A wrapper for loading Google Maps JavaScript in React
Archiving emails older than 30 days automatically.
Instructions for adding a WMS Layer to Google Maps
Using Lua to log requests to BigQuery.