1import { parseFigmaURL } from "https://esm.town/v/rodrigotello/parseFigmaURL";
2
3export function GetFigmaFileKey(url: string) {
4 return parseFigmaURL(url).key;
5}
1import { s } from "https://esm.town/v/jrmann100/s";
2
3export async function retry<A extends unknown[], R>(
4 times = 3,
5 timeout = 1000,
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function getCNNNewsShort() {
4 const response = await fetch(
5 "https://saurav.tech/NewsAPI/everything/cnn.json"
7 const data = await response.json();
8 const { articles } = data;
9 // Function to strip HTML tags from a string
10 const stripHtmlTags = (str) => {
11 const regex = /(<([^>]+)>)/gi;
1export function myApi(name) {
2 return "hi " + name;
3}
1255 const { Hono } = await import("npm:hono@3");
1256 const app = new Hono();
1257 async function getURL() {
1258 const htmlResponse = await fetch("https://datawrapper.dwcdn.net/4iRku");
1259 const htmlData = await htmlResponse.text();
1262 return url + "dataset.csv";
1263 }
1264 async function getDataset() {
1265 let url = await getURL();
1266 const response = await fetch(url, {
1271 return await response.text();
1272 }
1273 async function csvToCounties() {
1274 const data = await getDataset();
1275 let lines = data.split("\n");
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1export function fuckThisGuy(nameOfThisGuy) {
2 return `Fuck you, ${nameOfThisGuy}`;
3}
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
3
4export function valRuns({ token, id, error, source, since, until, offset, limit }: {
5 token: string;
6 id: string;
A helper function to build a file's email
Simple functional CSS library for Val Town
import { OpenAI } from "https://esm.town/v/std/openai";
export default async function(req: Request): Promise<Response> {
if (req.method === "OPTIONS") {
return new Response(null, {
headers: {
"Access-Control-Allow-Origin": "*",
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.