Search

Results include substring matches and semantically similar vals. Learn more
e_hwun avatar
untitled_crimsonSilkworm
@e_hwun
// Fetches a random joke.
Script
// ... 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 ...
sergeysova avatar
untitled_tealGrasshopper
@sergeysova
An interactive, runnable TypeScript val by sergeysova
Script
import { parentReference } from "https://esm.town/v/stevekrouse/parentReference?v=3";
export let untitled_tealGrasshopper = (() => {
console.log(parentReference());
neesh774 avatar
untitled_copperVole
@neesh774
// 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 await response.json();
const randomJoke = await fetchRandomJoke();
const setup = randomJoke.setup;
const punchline = randomJoke.punchline;
// Sends an email with the joke.
export const emailRandomJoke = email({
neuxxs avatar
untitled_vweG7xHn
@neuxxs
An interactive, runnable TypeScript val by neuxxs
Script
export const untitled_vweG7xHn = !top;
stevekrouse avatar
untitled_qAbtMd3a
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
Script
export const untitled_qAbtMd3a = (async () => {
const { Octokit } = await import("npm:@octokit/rest");
const octokit = new Octokit({
auth: process.env.githubGists,
return truncateVal(octokit.request("POST /gists", {
description: "How big 5?",
"public": false,
files: {
"README.md": {
content: JSON.stringify(new Array(10000000).fill(1)),
remelee avatar
untitled_redCatfish
@remelee
// 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 ...
bellaboateng avatar
untitled_peachQuokka
@bellaboateng
// Fetches a random joke.
Email
// 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({
maijason avatar
untitled_aquamarineBlackbird
@maijason
// 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({
sreenandm avatar
untitled_amberBedbug
@sreenandm
// 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({
axif0 avatar
untitled_cyanMagpie
@axif0
An interactive, runnable TypeScript val by axif0
Script
import { registerDiscordSlashCommand } from "https://esm.town/v/neverstew/registerDiscordSlashCommand?v=2";
export let untitled_cyanMagpie = registerDiscordSlashCommand(
process.env.discordAppID,
process.env.discordToken,
name: "call gali",
description: "Say hi to your bot",
andreterron avatar
untitled_scarletUrial
@andreterron
An interactive, runnable TypeScript val by andreterron
Script
export let untitled_scarletUrial = (() => {
throw 1;
baj avatar
untitled_cS5pGEaV
@baj
An interactive, runnable TypeScript val by baj
Script
export const untitled_cS5pGEaV = (async () => {
let count = 0;
function myApi() {
return count++;
demo_wizard avatar
untitled_tealLoon
@demo_wizard
An interactive, runnable TypeScript val by demo_wizard
Script
export const untitled_tealLoon = (async () => {
let a = 5;
console.log(a);
kisen avatar
untitled_moccasinAmphibian
@kisen
An interactive, runnable TypeScript val by kisen
Script
import { queryAQI } from "https://esm.town/v/kisen/queryAQI";
export const untitled_moccasinAmphibian = (async () => {
let weather = queryAQI("beijing");
let push = fetchJSON(
"https://api.day.app/UadTW6YQF2ceiAxypDgHe/Body",
rafter avatar
untitled_bronzePenguin
@rafter
An interactive, runnable TypeScript val by rafter
Script
export const untitled_bronzePenguin = (async () => {
return `<h1>Hello from Val</h1>`;