Search

Results include substring matches and semantically similar vals. Learn more
gbyang avatar
untitled3429908
@gbyang
An interactive, runnable TypeScript val by gbyang
Script
export let untitled3429908 = export.name = () => {
return "gbyang";
stevekrouse avatar
untitled_maroonSwallow
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
HTTP (deprecated)
import { isAuthenticated } from "https://esm.town/v/pomdtr/basicAuth";
export default async function(req: Request): Promise<Response> {
if (!await isAuthenticated(req)) {
return new Response("Unauthorized", {
status: 401,
headers: {
"WWW-Authenticate": "Basic",
return new Response("Well played!");
pdubroy avatar
untitled_jbL1ikZS
@pdubroy
An interactive, runnable TypeScript val by pdubroy
Script
export const untitled_jbL1ikZS = (async () => {
const untitled_9k2u9UCG = (async () => {
const resp = await fetch(
"https://termin.samedi.de/b/kardiologie-neuhausen-nymphenburg/1/dr-med-jung-philip/erstkontakt-im-quartal--24?insurance
let doc = new DOMParser().parseFromString(
await resp.text(),
"application/xml"
return doc;
let x = 3;
let y = 4;
olimsaidov avatar
untitled7947682
@olimsaidov
An interactive, runnable TypeScript val by olimsaidov
Script
export let untitled7947682 = helloVal =
wilt avatar
untitled_goldLungfish
@wilt
An interactive, runnable TypeScript val by wilt
Script
export let untitled_goldLungfish = pug(
doctype html
html(lang="en")
head
title= pageTitle
script(type='text/javascript').
if (foo) bar(1 + 5);
body
h1 Pug - node template engine
#container.col
josh_mcd05 avatar
untitled_coffeeDuck
@josh_mcd05
// Fetches a random joke.
Script
// Fetches a random joke.
// 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.
lxcong avatar
untitled_turquoiseHaddock
@lxcong
An interactive, runnable TypeScript val by lxcong
HTTP (deprecated)
export let untitled_turquoiseHaddock = async (request: Request): Promise<Response> => {
console.log(request.json());
return Response.json({ ok: true });
stevekrouse avatar
untitled_emeraldPorcupine
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
Script
export let untitled_emeraldPorcupine = async () =>
new Response(
(await newRSSItems({
url:
"https://www.domstol.se/feed/1122/?searchPageId=15264&scope=decision&facets=%5B{%22id%22:%22DecisionType%22,%22name%2
lastRunAt: Date.now() - (5 *
msWeek),
})).map((x) => x.description).join(""),
headers: {
"Content-Type": "text/html",
cihad avatar
untitled_aSHzKRc2
@cihad
An interactive, runnable TypeScript val by cihad
Script
import { sum } from "https://esm.town/v/cihad/sum";
export const untitled_aSHzKRc2 = sum;
sarahmeyohas avatar
untitled8552959
@sarahmeyohas
An interactive, runnable TypeScript val by sarahmeyohas
Script
import { untitled3882029 } from "https://esm.town/v/stevekrouse/untitled3882029";
export let untitled8552959 = untitled3882029 +10
karan_mor avatar
untitled_bronzeCanidae
@karan_mor
// Sends an email with the joke.
Cron
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({
text: punchline,
lokyeyoung_create avatar
untitled_coralGerbil
@lokyeyoung_create
// Fetches a random joke.
Cron
// Fetches a random joke.
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;
// Sends an email with the joke.
mike968 avatar
untitled_coffeeElk
@mike968
// Sends an email with the joke.
Cron
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({
text: punchline,
byjonathanleung avatar
untitled4011953
@byjonathanleung
An interactive, runnable TypeScript val by byjonathanleung
Script
export let untitled4011953 = 3
aditya292248 avatar
untitled_purpleWhippet
@aditya292248
// Sends an email with the joke.
Cron
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({
text: punchline,