Search

Results include substring matches and semantically similar vals. Learn more
arrudaricardo avatar
github_status_emoji_map
@arrudaricardo
An interactive, runnable TypeScript val by arrudaricardo
Script
"💟": ":heart_decoration:",
"💠": ":diamond_shape_with_a_dot_inside:",
"💡": ":bulb:",
"🙂": ":slightly_smiling_face:",
"🙃": ":upside_down_face:",
"🙄": ":face_with_rolling_eyes:",
"🚃": ":railway_car:",
"🚄": ":bullettrain_side:",
"🚅": ":bullettrain_front:",
adagradschool avatar
claude_033a69fc_cc3e_4691_a940_2386d3a0a00f
@adagradschool
An interactive, runnable TypeScript val by adagradschool
HTTP
export default function handler(req) {
on, and promote awareness about important issues affecting our world and our client’s world.\nWe produce films that have a ta
headers: {
"Content-Type": "text/html",
adagradschool avatar
jovialCoralMinnow
@adagradschool
An interactive, runnable TypeScript val by adagradschool
HTTP
export default function handler(req) {
on, and promote awareness about important issues affecting our world and our client’s world.\nWe produce films that have a ta
headers: {
"Content-Type": "text/html",
buttondown avatar
encounteredIDs
@buttondown
// set at Mon Feb 05 2024 20:41:55 GMT+0000 (Coordinated Universal Time)
Script
// set at Mon Feb 05 2024 20:41:55 GMT+0000 (Coordinated Universal Time)
post/3kisie4ql3s2k","app.bsky.feed.post/3kisgs26bvd2r","app.bsky.feed.post/3kisidee6h22g","app.bsky.feed.post/3kishukbapt2s",
tmcw avatar
recipes
@tmcw
An interactive, runnable TypeScript val by tmcw
Script
"Sazerac",
a chilled old-fashioned glass with the absinthe, add crushed ice and set it aside. Stir the remaining ingredients over ice a
glasses.oldFashionedGlass,
new U.Slice(1),
"sidecar",
new Recipe(
"Sidecar",
"Pour all ingredients into cocktail shaker filled with ice. Shake well and strain into cocktail glass.",
"B52",
he triple sec, serve while the flame is still on, accompanied with a straw on side plate.",
glasses.oldFashionedGlass,
"Brandy crusta",
edge of the glass. Carefully curling place the Orange/Lemon peel around the inside of the glass.",
glasses.cocktailGlass,
"Cachanchara",
"Mix honey with water and lime juice and spread the mixture on the bottom and sides of the glass. Add cracked ice, and then t
glasses.oldFashionedGlass,
new U.Whole(1),
"southside",
new Recipe(
"Southside",
"Egg white optional. Pour all ingredients into a cocktail shaker, shake well with ice, double-strain into chilled cockt
willthereader avatar
AlgoliaRecordSender2
@willthereader
// Importing environment variables
HTTP
"chapterTitle": "A Side Ws",
"chapter:A Side Ws"
"chapterTitle": "A Side Ws",
. But she wasn't. what? Processors for a brain? That just felt so weird to consider. Was she really that smart or was she sim
"chapter:A Side Ws"
"chapterTitle": "A Side Ws",
to try and cut them out of everything. On one level it seemed like a huge overreaction now that they all knew Newtype and Sta
"chapter:A Side Ws"
"chapterTitle": "A Side Ws",
"chapter:A Side Ws"
willthereader avatar
prepareChapterForAlgolia
@willthereader
An interactive, runnable TypeScript val by willthereader
Script
const chapterTitle = "A Side Ws";
a machine with...what? Processors for a brain? That just felt so weird to consider. Was she really that smart or was she sim
Fuck, the entire world turned upside down in one half-hour.
to try and cut them out of everything. On one level it seemed like a huge overreaction now that they all knew Newtype and Sta
Everett flinched, glancing at his side. "Hm?"
"Tagg is an asshole," Flash charged. "Even I knew that and I'm on the opposite side of the country."
"Maybe they should have," Spectre said reluctantly. "All that stuff aside, the Triumvirate would have handled this better tha
The mere mention of the name sparked a range of reactions.
tle. It was pointless. Forecast was talking to them from a phone on the other side of an internet connection.
She didn't have a choice. If Hitler were president she'd have to obey him. Someone forced her to put people in the Birdcage w
tmcw avatar
big_stories_ranks
@tmcw
// set by tmcw.big_story at 2023-07-21T13:27:35.553Z
Script
"title": "Israeli President to Meet With Biden Amid U.S. Unease With Netanyahu",
"https://www.nytimes.com/2023/06/24/insider/living-in-a-barbie-world-through-the-decades.html": {
"url": "https://www.nytimes.com/2023/06/24/insider/living-in-a-barbie-world-through-the-decades.html",
"section": "insider",
"title": "‘Training My Replacement’: Inside a Call Center Worker’s Battle With A.I.",
"title": "South Africa’s President Says Putin Will Not Attend Diplomatic Summit",
"title": "Protests Simmer in Israel as Country’s President Prepares to Address Congress",
"https://www.nytimes.com/2023/07/19/us/stanford-president-resigns-tessier-lavigne.html": {
"title": "Stanford President Will Resign After Report Found Flaws in His Research",
"url": "https://www.nytimes.com/2023/07/19/us/stanford-president-resigns-tessier-lavigne.html",
gigmx avatar
skilledCoffeePanther
@gigmx
An interactive, runnable TypeScript val by gigmx
HTTP
export default async function(req: Request): Promise<Response> {
return new Response(
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2/dist/tailwind.min.css" rel="stylesheet">
</head>
<body class="h-screen flex flex-col relative">
<div class="fixed inset-0 z-0">
saolsen avatar
ace
@saolsen
@jsxImportSource npm:hono/jsx
HTTP
/** @jsxImportSource npm:hono/jsx */
export type ContextVars = {};
export type SiteContext = Context<{ Variables: ContextVars }>;
const Body: FC<{ children: Child }> = ({ children }) => {
return (
<body>
<main>{children}</main>
</body>
const Page: FC<{ children: Child }> = ({ children }) => {
return (
tfayyaz avatar
requiredOrangeRattlesnake
@tfayyaz
@jsxImportSource npm:hono/jsx
HTTP
/** @jsxImportSource npm:hono/jsx */
// Simulated database
let contact = {
id: 1,
firstName: "Joe",
lastName: "Blow",
email: "joe@blow.com"
const app = new Hono();
app.get('*', jsxRenderer(({ children }) => (
<html>
matthiasraimann avatar
WebComponentExample
@matthiasraimann
Example of Web Component in ValTown This code shows how you can very fast deploy a Web Component to the wide world.
HTTP
# Example of Web Component in ValTown
This code shows how you can very fast deploy a Web Component to the wide world.
export default async function(req: Request): Promise<Response> {
const jsFile = `
class RegisterForEvent extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.controller();
controller() {
this.getInitData().then(data => {
stevekrouse avatar
cerebras_coder_prompts
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
Script
export const STARTER_PROMPTS = [
prompt: "todo list app persisted in local storage, pretty",
title: "Todo App",
code:
"<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width
performance: {
tokensPerSecond: 2298.56,
totalTokens: 1032,
time: 0.45,
prompt: "weather dashboard for nyc using open-meteo API for NYC with icons",
tempdev avatar
rabbitstream
@tempdev
// Full .ts implimentation of rabbitstream.net
HTTP
// Full .ts implimentation of rabbitstream.net
// Author : cool-dev-guy@github.com (cool-dev-guy)
// About : A one-file easy-deploy .ts code(specifically made for deno). for quick deployments.
// Thanks to :
// - ciarands@github.com (ciarands) [for payload script to extract variables]
// - drbgln@github.com (drbgln) [for reference script fordecryption]
const app = new Hono();
app.get("/:provider/:id", async (c) => {
try {
const { provider, id } = c.req.param();
saolsen avatar
clerk_hono_poc
@saolsen
Sloppy but it's a working POC. Clerk key would be shared by all vals though, probably annoying since you'd have to configure each URL in clerk. Could be fine though. The CLERK_JWT_KEY is a hack where I took the pem and replaced all the newlines with '|' so I could set it as an env var and then turn them back to newlines.
HTTP
Sloppy but it's a working POC. Clerk key would be shared by all vals though, probably annoying since you'd have to configure
The CLERK_JWT_KEY is a hack where I took the pem and replaced all the newlines with '|' so I could set it as an env var and t
/* @jsxImportSource https://esm.sh/hono/jsx */
const clerk_pub_key = Deno.env.get("CLERK_PUB_KEY");
const clerk_jwt_key = Deno.env.get("CLERK_JWT_KEY").replaceAll("|", "\n");
const jwt_key = await importSPKI(clerk_jwt_key, "RS256");
const app = new Hono();
function main(children: Child): JSX.Element {
return (
<main id="main">