7// import "https://esm.sh/tldraw/tldraw.css";
8
9export function App() {
10 return (
11 <>
33 : never;
34
35export function StatementTyped<T>(
36 strings: TemplateStringsArray,
37 // @ts-ignore
6import { Tldraw } from "https://esm.sh/tldraw";
7
8export function App() {
9 return (
10 <>
22]];
23
24export function App() {
25 return (
26 <>
1function interpret(code, options = {}) {
2 let {
3 tapeSize = 1024,
1export default async function (req: Request): Promise<Response> {
2 return Response.json({ ok: true })
3}
10import { randomStyle } from "https://esm.town/v/stevekrouse/classless_css";
11
12export default async function(req: Request): Promise<Response> {
13 return new Response(`<h1>Welcome to Val Town!</h1>${randomStyle}`, {
14 headers: {
4delete frameworks[""];
5
6function absolutePath(url: string) {
7 if (url.startsWith("http")) return url;
8 else return `https://classless-css-demo.deno.dev` + url;
13export const randomStyle = `<link rel="stylesheet" href="${randomURL}">`;
14
15export default function(req: Response) {
16 const url = new URL(req.url);
17
2import { easyAQI } from "https://esm.town/v/stevekrouse/easyAQI";
3
4export async function aqi(interval: Interval) {
5 const location = "prishtina"; // <-- change to place, city, or zip code
6 const data = await easyAQI({ location });
1const self = "this";
2
3export function follow(obj: any, chain: (string | number)[]): any {
4 let current = obj;
5
15}
16
17function trimmed(input: string): string {
18 const max = 500;
19 if (input.length <= max) {
33}
34
35export function asParts(obj: any): ObjectPart[] {
36 const objectParts: ObjectPart[] = [];
37 const record = asMap(obj);
55}
56
57export function asMap(obj: any, deep: number = 1): Record<string, any> {
58 const objectMap: Record<string, any> = {};
59
A helper function to build a file's email
Simple functional CSS library for Val Town
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.
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": "*",