2import { runs as runs2 } from "https://esm.town/v/stevekrouse/runs";
3
4export function runErrorEmail(data) {
5 type Then<T> = T extends Promise<infer U> ? U : never;
6 let runs = data.data as Then<
1import { valTownInspirationEmail } from "https://esm.town/v/rodrigotello/valTownInspirationEmail?v=79";
2
3export async function valTownDailyInspo() {
4 return await valTownInspirationEmail();
5}
3import { runVal } from "https://esm.town/v/std/runVal";
4
5export async function emailGPT3(email) {
6 let response = await runVal("patrickjm.gpt3", { prompt: email.text });
7 return mail({
2
3// https://stevekrouse-rimeExampleUI.express.val.run
4export function rimeExampleUI(req, res) {
5 res.send(
6 `<audio controls src="data:audio/ogg;base64,${rimeExample.audioContent}" />`,
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3
4export function runs({ token, error, source, since, until, offset, limit }: {
5 token: string;
6 error?: boolean;
3import { hnLatestPosts } from "https://esm.town/v/stevekrouse/hnLatestPosts";
4
5export const hnFollowApp = function (authors: string[], tags = ["story", "comment"]) {
6 return async function ({ lastRunAt }) {
7 let posts = await hnLatestPosts({
8 authors,
1export async function shuffle(a) {
2 const { default: shuffle } = await import("npm:lodash");
3 return shuffle(a);
1export const dataToRSS = function (data: Item[], settings: Setting) {
2 let { title, link, description, rssLink } = settings;
3 let rss = [
1// View at https://stevekrouse-expressHTMLExample.express.val.run?name=Steve
2export async function expressHTMLExample(
3 req: express.Request,
4 res: express.Response,
1export async function parseHTML(text) {
2 const { DOMParser } = await import(
3 "https://deno.land/x/deno_dom/deno-dom-wasm.ts"