Search

Results include substring matches and semantically similar vals. Learn more
stevekrouse avatar
untitled_NwQdD9zC
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
Script
import { databaseVal } from "https://esm.town/v/stevekrouse/databaseVal";
export const untitled_NwQdD9zC = databaseVal.push({ hello: "world" });
andreterron avatar
untitledRandom
@andreterron
An interactive, runnable TypeScript val by andreterron
Script
import { noop } from "https://esm.town/v/andreterron/noop";
export let untitledRandom = (async () => {
let nums = [];
await Promise.all(
[0, 1, 2, 3, 4].map((i) => noop().then(() => nums.push(i)))
return nums;
andreterron avatar
untitled_violetAngelfish
@andreterron
An interactive, runnable TypeScript val by andreterron
Script
import { fib2 } from "https://esm.town/v/stevekrouse/fib2";
export let untitled_violetAngelfish = fib2(10);
qihongw08 avatar
untitled_magentaChicken
@qihongw08
An interactive, runnable TypeScript val by qihongw08
Script
function fetchRandomJoke() {
const SAMPLE_JOKE = {
"setup": "What do you call a group of disorganized cats?",
"punchline": "A cat-tastrophe.",
return SAMPLE_JOKE;
const randomJoke = fetchRandomJoke();
const setup = randomJoke.setup;
const punchline = randomJoke.punchline;
export const emailRandomJoke = email({
text: punchline,
tmcw avatar
untitled_indigoWren
@tmcw
An interactive, runnable TypeScript val by tmcw
Script
async function write(text: string) {
const textEncoder = new TextEncoder();
const data = textEncoder.encode(text);
await Deno.stdout.write(data);
await write("-=-");
await delay(1000);
await write("-=-");
await delay(1000);
await write("-=-");
await delay(1000);
jain_aha avatar
untitled_coffeePanda
@jain_aha
// 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_library_unauthenticated_cannot_read_val_stevekrouse_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_val_stevekrouse_func =
fetchJSON(
`${TEST_API}/eval/@stevekrouse.untitled_return_steverkrouse_val()`
tmcw avatar
untitled_beigeElephant
@tmcw
const result = await sqlite.execute(` CREATE TABLE plugin_stats ( name TEXT, t TIMESTAMP DEFAULT CURRENT_TIMESTAMP, install_count NUMBER, like_count NUMBER, view_count NUMBER )`);
HTTP (deprecated)
const result = await sqlite.execute(`
CREATE TABLE plugin_stats (
name TEXT,
t TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
install_count NUMBER,
like_count NUMBER,
view_count NUMBER
export const handler = async () => {
return Response.json(
await sqlite.execute(`SELECT * FROM plugin_stats;`),
neverstew avatar
untitled_tealGorilla
@neverstew
An interactive, runnable TypeScript val by neverstew
Script
import { thisWebEndpoint } from "https://esm.town/v/neverstew/thisWebEndpoint";
export let untitled_tealGorilla = thisWebEndpoint();
adheep04 avatar
untitled_amethystShrew
@adheep04
// 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({
patrickh avatar
untitled_peachSwift
@patrickh
An interactive, runnable TypeScript val by patrickh
Script
export let untitled_peachSwift = console.sms("test");
Clara avatar
untitled_cyanTapir
@Clara
// 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 = fetchRandomJoke();
const setup = randomJoke.setup;
const punchline = randomJoke.punchline;
// Sends an email with the joke.
zachie27 avatar
untitled_tanPony
@zachie27
// 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({
benjaccaci avatar
untitled_yellowMarten
@benjaccaci
// 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({
stevekrouse avatar
untitled_BtS7uxqd
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
Script
export const untitled_BtS7uxqd = hnCommentToHTML({
created_at: "2023-05-18T16:36:39.000Z",
title: null,
url: null,
author: "realjohng",
points: null,
story_text: null,
comment_text: "Oh boy, jarring coming out of that dark background website",
num_comments: null,
story_id: 35988604,