1import { moveHead } from "https://esm.town/v/adamgonda/moveHead";
2
3export function moveBody({ body, dir }) {
4 return body.map((part, index, arr) => {
5 if (index == 0) {
1export function View(width, height) {
2 return { width, height };
3}
5// get and parse magnetometer data from https://services.swpc.noaa.gov/text/ace-magnetometer.txt
6// used for chorus art installation
7export async function chorus_data(auth) {
8 // check auth
9 if (auth != process.env.chorus_access) {
1export async function OfficeJSTest(
2 req: express.Request,
3 res: express.Response,
1export function myApi(name) {
2 return "hi " + name;
3}
3/*
4# Email alerts when air is unhealthy near you */
5export async function aqi() {
6 const location = "alamo square, sf"; // **<-- change to place, city, or zip code**
7 const data = await easyAQI({ location });
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function runHnBotTask(interval) {
4 console.log("interval", interval);
5
1export function myApi(name) {
2 return "hi " + name;
3}
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": "*",