Avatar

jamiedubs

i move away from the mic to breathe in
Joined March 27, 2023
Public vals
24
jamiedubs avatar
twitterSearch
@jamiedubs
Script
An interactive, runnable TypeScript val by jamiedubs
jamiedubs avatar
randomCardImage
@jamiedubs
HTTP
An interactive, runnable TypeScript val by jamiedubs
jamiedubs avatar
twitterAlert
@jamiedubs
Cron
glif.app/@heyglif-related tweets -> our Discord server nice val steve see original val for instructions :) https://www.val.town/v/stevekrouse/twitterAlert requires a slightly updated version of twitterSearch
jamiedubs avatar
ethereumTokenBalances
@jamiedubs
HTTP
fetch token balances from an Ethereum wallet. uses Alchemy. don't abuse my API key or I'll turn this off
jamiedubs avatar
runGlif
@jamiedubs
Script
// make generative magical AI things
jamiedubs avatar
roastCast
@jamiedubs
HTTP
Farcaster action that summons a https://glif.app bot to roast the cast, using glif AI magic #farcaster #glif
jamiedubs avatar
wikipediaPage
@jamiedubs
HTTP
fetch contents of a specific wikipedia page using ?title= param. will return nothing if page doesn't exactly match. example: https://jamiedubs-wikipediapage.web.val.run/?title=Berlin for a more search-oriented approach, try https://www.val.town/v/jamiedubs/searchWikipedia
jamiedubs avatar
syntheticLoot
@jamiedubs
HTTP
dark greetings cryptoadventurers. This val will print the contents of a given Ethereum wallet's Synthetic Loot , which is procedurally generated from your wallet address. To look at your sLoot in a browser with some fun pixel art, check out timshel's Synthetic Loot Viewer to use this endpoint, pass ?address=0x... e.g. https://jamiedubs-syntheticloot.web.val.run/?account=0xf296178d553c8ec21a2fbd2c5dda8ca9ac905a00 the default response type is JSON. You can also get a simple list of the loot bag contents using ?format=text . e.g. https://jamiedubs-syntheticloot.web.val.run/?account=0xf296178d553c8ec21a2fbd2c5dda8ca9ac905a00&format=text
jamiedubs avatar
weatherInCity
@jamiedubs
HTTP
get weather forecast for a city. pass ?city=Cleveland,OH . e.g.: https://jamiedubs-weatherInCity.web.val.run/?city=brooklyn,ny
jamiedubs avatar
sleeper
@jamiedubs
HTTP
// a very slow and sleepy function
jamiedubs avatar
wikipediaToday
@jamiedubs
HTTP
fetch the contents of the Wikipedia "On this day in history" page. defaults to JSON output, but specify ?format=text or ?format=html for other outputs. e.g. https://jamiedubs-wikipediatodayhttp.web.val.run/?format=json https://jamiedubs-wikipediatodayhttp.web.val.run/?format=text https://jamiedubs-wikipediatodayhttp.web.val.run/?format=html #wikipedia
jamiedubs avatar
dataDemo
@jamiedubs
HTTP
// hello i am a simple demo of using GET/POST + Content-Type header to handle things differently
jamiedubs avatar
valtownGeocities
@jamiedubs
HTTP
attempt to generate websites using Glif and then store and publish them via Valtown - it's valtownGeocities! a real mouthful run this glif to generate HTML and publish to a given key: https://glif.app/@jamiedubs/glifs/clqecfqdd000tc3vk4i208jl3 access that website by going to a URL like: https://jamiedubs-valtownGeocities.web.val.run?key=YOURKEYHERE make sure to use the same key value for both the glif and to access your cool new website
jamiedubs avatar
randomMediaUrl
@jamiedubs
HTTP
// select random record from "files" based on format
jamiedubs avatar
databin
@jamiedubs
HTTP
a super simple JSON setter/getter using valtown blobs. use GET to fetch it, use POST to set it. expects the inbound data to be JSON for simplicity. use ?key=foobar to specify different storage locations. set: curl -s -X POST -d '{"lol": "wut"}' https://jamiedubs-databin.web.val.run?key=foobar get: curl -s https://jamiedubs-databin.web.val.run?key=foobar # {"lol":"wut"}
jamiedubs avatar
simpleJsonReply
@jamiedubs
Express
// View at https://stevekrouse-expressHTMLExample.express.val.run?name=Steve