1export function myApi(name) {
2 return "hi " + name;
3}
1import { runVal } from "https://esm.town/v/std/runVal";
2
3export async function gtp3(prompt) {
4 return await runVal("patrickjm.gpt3", {
5 prompt,
2import { gitlabUserContributionEvents } from "https://esm.town/v/rwev/gitlabUserContributionEvents";
3
4export async function gitlabWeeklySummary() {
5 const R = await import("npm:ramda");
6 const userEvents = await gitlabUserContributionEvents(
1import { runs as runs2 } from "https://esm.town/v/neverstew/runs";
2
3export async function runsToday() {
4 const { default: startOfDay } = await import("npm:date-fns/startOfDay");
5 const runs = runs2({
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
2import { rimeUsage } from "https://esm.town/v/stevekrouse/rimeUsage";
3
4export function rimeRateLimitExceeded(text: string) {
5 rimeUsage[new Date().toLocaleDateString()] =
6 (rimeUsage[new Date().toLocaleDateString()] || 0) +
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3
4export async function testMutateSemantics2({
5 stateName,
6 mutateExpected,
2 const { jsPython } = await import("npm:jspython-interpreter");
3 const script = `
4def mapFunction(r, i):
5 v = r * i
6 return v
8x = [1, 2, 3, 4]
9x
10 .map(mapFunction)
11 .filter(r => r * r)
12 .join(",")
1export const untitled_oliveSwordtail = (async () => {
2 var name = "hank";
3 function myApi(name) {
4 return "hi " + name;
5 }
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": "*",