Search

Results include substring matches and semantically similar vals. Learn more
jonsibley avatar
myApi
@jonsibley
An interactive, runnable TypeScript val by jonsibley
Script
export function myApi(name) {
return "hi " + name;
arthrod avatar
ciceroAISiteDesign
@arthrod
@jsxImportSource https://esm.sh/react@18.2.0
HTTP
transition: background-color 0.5s ease, width 2.5s linear;
function AnimatedHeadline() {
const [animationStarted, setAnimationStarted] = useState(false);
text-decoration: none;
function FeatureCarousel() {
const features = [
</CarouselContainer>
function App() {
const [isNavOpen, setIsNavOpen] = React.useState(false);
</Footer>
function client() {
const root = document.getElementById("root");
client();
export default async function server(request: Request): Promise<Response> {
return new Response(`
joakim avatar
myApi
@joakim
An interactive, runnable TypeScript val by joakim
Script
import { myApi as myApi2 } from "https://esm.town/v/joakim/myApi";
export function myApi(name) {
return "hi " + name + ". This is posted from " + myApi2;
israelroldan avatar
myApi
@israelroldan
An interactive, runnable TypeScript val by israelroldan
Script
export function myApi(name) {
return "hi " + name;
dhvanil avatar
web_T7W6KG7bgE
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function web_T7W6KG7bgE(req) {
return new Response(`<!DOCTYPE html>
<html>
developersdigest avatar
weatherGPT
@developersdigest
Cron
import { email } from "https://esm.town/v/std/email?v=11";
import { OpenAI } from "npm:openai";
let location = "toronto on";
).then(r => r.json());
const openai = new OpenAI();
let chatCompletion = await openai.chat.completions.create({
messages: [{
console.log(text);
export async function weatherGPT() {
await email({ subject: "Weather Today", text });
dhvanil avatar
val_DyfUOZ6tYg
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function val_DyfUOZ6tYg(req) {
try {
// Execute the code directly and capture its result
dhvanil avatar
val_1zMq44MuIa
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function val_1zMq44MuIa(req) {
try {
// Execute the code directly and capture its result
hunty avatar
spotify
@hunty
Spotify Playback A val to setting up some endpoints for Spotify play state.
HTTP
} catch (e) {
return c.json({ error: "Failed callback" + e }, 500);
async function getToken(c) {
const state = c.req.query("state") as string;
const authData = await db.select().from(table).where(eq(table.id, state)).limit(1);
dhvanil avatar
val_Ana3w2z9u6
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function val_Ana3w2z9u6(req) {
try {
// Execute the code directly and capture its result
octref avatar
myApi
@octref
An interactive, runnable TypeScript val by octref
Script
export function myApi(name) {
return "hi " + name;
kavanagh avatar
myApi
@kavanagh
An interactive, runnable TypeScript val by kavanagh
Script
export function myApi(name) {
return "hi " + name;
dhvanil avatar
val_idCyDeeEA6
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function val_idCyDeeEA6(req) {
try {
// Execute the code directly and capture its result
const sumOfSquares = a * a + b * b;
return sum === sumOfSquares;
// Test the function with some values
const results = [];
for (let i = 1; i <= 10; i++) {
burger avatar
myApi
@burger
An interactive, runnable TypeScript val by burger
Script
export function myApi(name) {
return "hi " + name;
dhvanil avatar
web_Uex9zSRfGn
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function web_Uex9zSRfGn(req) {
return new Response(`<!DOCTYPE html>
<script>
function runSpeedTest() {
const startTime = performance.now();
Final sum: ${sum.toFixed(2)}`;
function analyzeRandomness() {
const numbers = [];