pomdtr avatar
pomdtr
fetchValTownAPI
Script
Fetch data from the val town api Usage Create an helper val const valtownApi = (path: string, options?: RequestInit) => @pomdtr.fetchValTownAPI( @me.secrets.apiToken, path, options, ); Then use it in any of your val @me.valtownApi("/alias/pomdtr")
1
bnorick avatar
bnorick
load_new_subreddit_posts
Script
An interactive, runnable TypeScript val by bnorick
0
yawnxyz avatar
yawnxyz
SidebarToArchive
HTTP
Sidebar.io Archiver Sidebar's been one of my biggest design resources for the last decade. Since sidebar.io's break announcement this morning (https://sidebar.io/break/) I've set out to mess around with using Val.town to archive sidebar. The Google Sheet can be found here: https://docs.google.com/spreadsheets/d/1RghvMfPTR5xvHMAk1pKYuH2pFYYKOJ6bH0LLkHNZiuc/edit?usp=sharing Initially I was just piping data to Google Sheets but that's slow, wasteful and kind of dumb... instead I just wrapped Hono around the code to provide a download the CSV to browser.
1
stevekrouse avatar
stevekrouse
wikidata
Script
Query Wikidata via SPARQL Usage // get the death date for a person @stevekrouse.wikidata(`SELECT ?person ?personLabel ?death_date WHERE { ?person rdfs:label "Henry Kissinger"@en; wdt:P31 wd:Q5 . # Ensure the entity is a human OPTIONAL { ?person wdt:P570 ?death_date . # Try to find a date of death } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }`) Learn more https://agg-shashank.medium.com/an-introduction-to-using-wikidata-apis-a678ee6d2968
0
jxnblk avatar
jxnblk
dailyDadJoke
HTTP
Forked from stevekrouse/dailyDadJoke
0
andreterron avatar
andreterron
createGeneratedVal
Script
Use GPT to generate vals on your account! Describe the val that you need, call this function, and you'll get a new val on your workspace generated by OpenAI's API! First, ensure you have a Val Town API Token , then call @andreterron.createGeneratedVal({...}) like this example : @andreterron.createGeneratedVal({ valTownKey: @me.secrets.vt_token, description: "A val that given a text file position in `{line, col}` and the text contents, returns the index position", }); This will create a val in your workspace, and here's the one created by the example above: https://www.val.town/v/andreterron.getFileIndexPosition
5
bobbydigital avatar
bobbydigital
boredActivities
Script
// Activity suggestions for when you're bored
0
markthree avatar
markthree
github
Script
An interactive, runnable TypeScript val by markthree
0
sarfrazkhan18 avatar
sarfrazkhan18
umbrellaReminder
Cron
Forked from stevekrouse/umbrellaReminder
0
stevekrouse avatar
stevekrouse
spectacularAzureAngelfish
HTTP
Forked from stevekrouse/socialDataProxy
0
trea avatar
trea
untitled_jadeLizard
HTTP
An interactive, runnable TypeScript val by trea
0
jshawl avatar
jshawl
githubRepos
Script
An interactive, runnable TypeScript val by jshawl
0
endingwithali avatar
endingwithali
meow
Script
An interactive, runnable TypeScript val by endingwithali
0
alexdmejias avatar
alexdmejias
redditNew
Script
Forked from stevekrouse/redditNew
0
stevekrouse avatar
stevekrouse
hnSearch
Script
Search Hacker News via Agolia Look for the valid params: https://hn.algolia.com/api
0
stevekrouse avatar
stevekrouse
nicoFunctionScript
Script
An interactive, runnable TypeScript val by stevekrouse
0
ā€¦
19
ā€¦
Updated: July 2, 2024