Google Sheets API examples & templates
Use these vals as a playground to view and fork Google Sheets API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
fal
sdxl
Script
SDXL (fastest) https://www.fal.ai/models/stable-diffusion-xl link to val - https://www.val.town/v/fal/sdxl import * as fal from "npm:@fal-ai/serverless-client";
const result = await fal.subscribe("fal-ai/fast-sdxl", {
input: {
prompt: "photo of a rhino dressed suit and tie sitting at a table in a bar with a bar stools, award winning photography, Elke vogelsang"
},
logs: true,
onQueueUpdate: (update) => {
if (update.status === "IN_PROGRESS") {
update.logs.map((log) => log.message).forEach(console.log);
}
},
});
0

yawnxyz
htmlkit
Script
This module provides functions to convert HTML to various formats such as Markdown, Pug, and Turndown.
It also includes utilities to fetch HTML from a URL, extract metadata, and clean HTML by removing unwanted selectors.
Dependencies include Cheerio for HTML parsing, JSDOM for DOM manipulation, and Turndown for converting HTML to Markdown.
0