Search

Results include substring matches and semantically similar vals. Learn more
andreterron avatar
untitled3671440
@andreterron
An interactive, runnable TypeScript val by andreterron
Script
export let untitled3671440 = (() => {
export let if (true) {c = 4; return c + 2}
daanielzhou avatar
untitled_violetToucan
@daanielzhou
// Fetches a random joke.
Cron
export const SAMPLE_JOKE = {
"setup": "What do you call a group of disorganized cats?",
"punchline": "A cat-tastrophe.",
// Fetches a random joke.
async function fetchRandomJoke() {
const response = await fetch(
"https://official-joke-api.appspot.com/random_joke",
return response.json();
const randomJoke = await fetchRandomJoke();
const setup = randomJoke.setup;
stevekrouse avatar
untitled_library_unauthenticated_cannot_read_secret_me_func
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
Script
import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
export let untitled_library_unauthenticated_cannot_read_secret_me_func =
fetchJSON(
`${TEST_API}/eval/@stevekrouse.untitled_return_me_secret()`
dluscombe avatar
untitled_sapphireHornet
@dluscombe
// Fetches a random joke.
Cron
// Fetches a random joke.
async function fetchRandomJoke() {
const response = await fetch(
"https://official-joke-api.appspot.com/random_joke",
return response.json();
const randomJoke = await fetchRandomJoke();
const setup = randomJoke.setup;
const punchline = randomJoke.punchline;
// Sends an email with the joke.
export const emailRandomJoke = email({
mustafaahmedfarooqui avatar
untitled_bronzeSmelt
@mustafaahmedfarooqui
// Fetches a random joke.
Cron
// ... imports ...
// Fetches a random joke.
async function fetchRandomJoke() {
const response = await fetch(
"https://official-joke-api.appspot.com/random_joke",
return response.json();
const randomJoke = await fetchRandomJoke();
const setup = randomJoke.setup;
const punchline = randomJoke.punchline;
// ... email sending logic ...
jmurphy5613 avatar
untitled_crimsonHerring
@jmurphy5613
// Fetches a random joke.
Cron
// Fetches a random joke.
async function fetchRandomJoke() {
const response = await fetch(
"https://official-joke-api.appspot.com/random_joke",
return response.json();
const randomJoke = await fetchRandomJoke();
const setup = randomJoke.setup;
const punchline = randomJoke.punchline;
// Sends an email with the joke.
export const emailRandomJoke = email({
seamusmuf123 avatar
untitled_sapphireEchidna
@seamusmuf123
// Fetches a random joke.
Cron
// Fetches a random joke.
async function fetchRandomJoke() {
const response = await fetch(
"https://official-joke-api.appspot.com/random_joke",
return response.json();
const randomJoke = await fetchRandomJoke();
const setup = randomJoke.setup;
const punchline = randomJoke.punchline;
// Sends an email with the joke.
export const emailRandomJoke = email({
stevekrouse avatar
untitled_cyanLamprey
@stevekrouse
// export default async () => html(await blob.getJSON("dateme_html_cache"));
Script
import { timed } from "https://esm.town/v/stevekrouse/timed";
const dateme_html_cache = await (await fetch("https://stevekrouse-dateme.web.val.run/")).text();
await blob.delete("dateme_html_cache");
// export default async () => html(await blob.getJSON("dateme_html_cache"));
juwang110 avatar
untitled_harlequinDingo
@juwang110
An interactive, runnable TypeScript val by juwang110
Script
async function emailRandomJoke() {
async function fetchRandomJoke() {
const response = await fetch(
"<https://official-joke-api.appspot.com/random_joke>",
return response.json();
const randomJoke = await fetchRandomJoke();
const setup = randomJoke.setup;
const punchline = randomJoke.punchline;
return console.email(punchline, setup);
export emailRandomJoke()
stevekrouse avatar
untitled_amberLeopard
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
HTTP (deprecated)
import createPlugin from "https://esm.sh/@extism/extism";
export default async function(req: Request): Promise<Response> {
const plugin = await createPlugin(
"https://cdn.modsurfer.dylibso.com/api/v1/module/ec17c9afde08aa9e7fa857fe2c9cbb9206e3a3dbec98429ceebd3421de7070da.wasm",
{ useWasi: false },
const data = {
event_file_name: "input.md",
event_file_data: btoa(await req.text()),
let out = await plugin.call("on_file_write", JSON.stringify(data));
return Response.json(out.json());
nnwetzel avatar
untitled_redCarp
@nnwetzel
// Fetches a random joke.
Cron
// Fetches a random joke.
async function fetchRandomJoke() {
const response = await fetch(
"https://official-joke-api.appspot.com/random_joke",
return response.json();
const randomJoke = await fetchRandomJoke();
const setup = randomJoke.setup;
const punchline = randomJoke.punchline;
// Sends an email with the joke.
export const emailRandomJoke = email({
tefla avatar
untitled_salmonCow
@tefla
An interactive, runnable TypeScript val by tefla
Script
import { githubStarred } from "https://esm.town/v/tefla/githubStarred";
export const untitled_salmonCow = (async () => {
let res = githubStarred;
let githubStaredProjects = res.map((i) => i.full_name);
return githubStaredProjects;
dpetrouk avatar
untitled_pinkDamselfly
@dpetrouk
An interactive, runnable TypeScript val by dpetrouk
Script
import { fetchJSON } from "https://esm.town/v/dpetrouk/fetchJSON";
export let untitled_pinkDamselfly = async () => {
return await fetchJSON(
"https://twitter.com/__drewface/status/1664273547764830208?s=20",
stevekrouse avatar
untitled_library_unauthenticated_cannot_read_secret_top
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
Script
import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
export let untitled_library_unauthenticated_cannot_read_secret_top =
fetchJSON(
`${TEST_API}/eval/@stevekrouse.secrets.rime`
NghiiHua avatar
untitled_orangeGopher
@NghiiHua
// Fetches a random joke.
Script
// Fetches a random joke.
async function fetchRandomJoke() {
const response = await fetch(
"https://official-joke-api.appspot.com/random_joke",
return response.json();
const randomJoke = await fetchRandomJoke();
const setup = randomJoke.setup;
const punchline = randomJoke.punchline;
// Sends an email with the joke.
export const emailRandomJoke = email({