malloc avatar
malloc
examplebot_endpoint
Script
An interactive, runnable TypeScript val by malloc
0
stevekrouse avatar
stevekrouse
r2
Script
r2 wrapper Save blobs without leaving Val Town! Only for Val Town Pro users to limit abuse. We get 10gb free, so as long as nobody abuses this, I won't put any strict limits on it. If you want to use more than 10gb, let me know, and we can bill you for it. All data in this bucket is public if you know it's name! This val, @stevekrouse.r2, is the "SDK" for @stevekrouse.r2Proxy . Setup This val requires you to setup public key auth, which is really just three clicks here: https://blog.val.town/public-key-auth-val-town-users-can-be-your-users [Optional] You can setup a helper function so you don't have to pass your keys every time: let blob = (key, value) => @stevekrouse.r2(key, value, @me.exportedKeys) Warning: Do not make your blob function public or unlisted. That would allow anyone to use it. Usage await @me.blob("demo", { hello: "world" }); return @me.blob("demo"); // {hello: "world"} Example usage: https://www.val.town/v/stevekrouse.r2Demo
2
andreterron avatar
andreterron
likedUpdated
Script
An interactive, runnable TypeScript val by andreterron
0
wallek avatar
wallek
nasaImageDetails
Script
An interactive, runnable TypeScript val by wallek
0
stevekrouse avatar
stevekrouse
getWeather
Script
Forked from sdan/getWeather
4
stevekrouse avatar
stevekrouse
untitled_library_unauthenticated_cannot_read_private_val_top
Script
An interactive, runnable TypeScript val by stevekrouse
0
endingwithali avatar
endingwithali
githubEvents
Script
An interactive, runnable TypeScript val by endingwithali
0
karfau avatar
karfau
githubEmoji
HTTP
Usage import {githubEmojiUrl} from "https://esm.town/v/karfau/githubEmoji"; console.log(githubEmojiUrl('+1')) //"https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png?v8" or in a browser <img src="https://karfau-githubEmoji.web.val.run/+1"></img> Looks like in the preview. curl https://karfau-githubEmoji.web.val.run/+1 (prints "https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png?v8" ) If the name you pass (as argument or in the request path) is not in the list, it returns The list of names can be accessed using githubEmojiNames or by calling https://karfau-githubemoji.web.val.run/names
1
stevekrouse avatar
stevekrouse
alias
Script
Forked from neverstew/alias
0
vtdocs avatar
vtdocs
slackReplyToMessage
Script
Part of the A Slack bot that replies to mentions guide on docs.val.town .
2
testhandle avatar
testhandle
holidaysUS
Script
// Public holidays in the US in 2023
0
stevekrouse avatar
stevekrouse
runAllTests2
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
weatherGovGrid
Script
Lookup a weather.gov grid by lat, lon Documentation: https://www.weather.gov/documentation/services-web-api Forecasts are created at each NWS Weather Forecast Office (WFO) on their own grid definition, at a resolution of about 2.5km x 2.5km. The API endpoint for the 12h forecast periods at a specific grid location is formatted as: https://api.weather.gov/gridpoints/{office}/{gridX},{gridY}/forecast For example: https://api.weather.gov/gridpoints/TOP/31,80/forecast To obtain the grid forecast for a point location, use the /points endpoint to retrieve the current grid forecast endpoint by coordinates: https://api.weather.gov/points/{latitude},{longitude} For example: https://api.weather.gov/points/39.7456,-97.0892
0
stevekrouse avatar
stevekrouse
githubUser
Script
An interactive, runnable TypeScript val by stevekrouse
0
pomdtr avatar
pomdtr
set
Script
Forked from std/set
0
Davidkim avatar
Davidkim
EmailNotifIfDidntCode
Cron
An interactive, runnable TypeScript val by Davidkim
0
Updated: July 2, 2024