Search

Results include substring matches and semantically similar vals. Learn more
byrneml avatar
untitled4881419
@byrneml
// Get news from different sources I care about
Script
// Get news from different sources I care about
export let untitled4881419 = interface LeNews {
feedlyAPI: {
name: String,
desc: String,
url: String,
export async function giveMeLeNews({ feedlyAPI }: LeNews) {
return "Works";
benvalentino avatar
untitled0185634
@benvalentino
An interactive, runnable TypeScript val by benvalentino
Script
export let untitled0185634 = @benvalentino
export ping = (msg) => {
return msg;
yalif7 avatar
untitled_plumAardvark
@yalif7
// Fetches a random joke.
Cron
// Fetches a random joke.
async function fetchRandomJoke() {
const response = await fetch(
"https://official-joke-api.appspot.com/random_joke",
// Check if the request was successful (status code 200)
if (!response.ok) {
throw new Error(`Failed to fetch joke. Status: ${response.status}`);
const data = await response.json();
return data;
// Export the fetched random joke
wilt avatar
untitled_tealYak
@wilt
An interactive, runnable TypeScript val by wilt
Script
import { untitled_goldLungfish } from "https://esm.town/v/wilt/untitled_goldLungfish";
export let untitled_tealYak = (req, res) => {
res.status(200);
res.send(untitled_goldLungfish);
dan avatar
untitled3882029
@dan
An interactive, runnable TypeScript val by dan
Script
import { add3 } from "https://esm.town/v/dan/add3";
export let untitled3882029 = add3(10)
bowlerl avatar
untitled_amethystFalcon
@bowlerl
// 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({
cindytran1 avatar
untitled_aquamarineChinchilla
@cindytran1
// 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({
aravgoyalneu avatar
untitled_blushLobster
@aravgoyalneu
An interactive, runnable TypeScript val by aravgoyalneu
Email
export async function untitled_blushLobster(email: Email) {
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);
ian965 avatar
untitled_blushSkink
@ian965
// Fetches a random joke.
Cron
// Fetches a random joke.
// 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;
stevekrouse avatar
untitled_orangeImpala
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
Script
import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
export const untitled_orangeImpala = fetchJSON(
"https://api.openai.com/v1/usage?date=2023-11-01",
headers: {
authorization: "Bearer " + Deno.env.get("openai"),
cyrilis avatar
untitled8745444
@cyrilis
An interactive, runnable TypeScript val by cyrilis
Script
import { gpt3 } from "https://esm.town/v/patrickjm/gpt3?v=4";
export let untitled8745444 = default (params) => {
return gpt3({
openAiKey: process.env.openai_key,
prompt: params.question,
.then((result) => result);
reshmarajkuma03 avatar
untitled_indigoSole
@reshmarajkuma03
// 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({
hankenstein avatar
untitled_oliveSwordtail
@hankenstein
An interactive, runnable TypeScript val by hankenstein
Script
export const untitled_oliveSwordtail = (async () => {
var name = "hank";
function myApi(name) {
return "hi " + name;
byrneml avatar
untitled8578717
@byrneml
// Get news from different sources I care about
Script
// Get news from different sources I care about
export let untitled8578717 = interface LeNews {
feedlyAPI: {
name: String,
desc: String,
url: String,
export async function giveMeLeNews({ feedlyAPI }: LeNews) {
return "Works";
nico avatar
untitled_ivoryWallaby
@nico
An interactive, runnable TypeScript val by nico
HTTP (deprecated)
export let untitled_ivoryWallaby = async (request: Request): Promise<Response> => {
return Response.json({ ok: true });