Avatar

tmcw

👷 Building Val Town
Joined August 31, 2022
Public vals
167
tmcw avatar
tmcw
copperAsp
Script
An interactive, runnable TypeScript val by tmcw
0
tmcw avatar
tmcw
jsonBodyParsing
HTTP
An interactive, runnable TypeScript val by tmcw
0
tmcw avatar
tmcw
httpMockingExample
HTTP
HTTP Val Mocking example This is an example of mocking an HTTP val. Let's say that you're developing a val that responds to a POST request. That's tricky to debug and develop in the Browser preview tab, which just shows a GET request. But you can do it, because with web-standard Request & Response objects, requests and responses are values, and we can create those values ourselves.
1
tmcw avatar
tmcw
apricotSloth
Script
Usage curl https://karfau.web.val.run
0
tmcw avatar
tmcw
maroonSawfish
Script
An interactive, runnable TypeScript val by tmcw
0
tmcw avatar
tmcw
emeraldLeopard
Script
An interactive, runnable TypeScript val by tmcw
0
tmcw avatar
tmcw
untitled_redEarthworm
HTTP
An interactive, runnable TypeScript val by tmcw
0
tmcw avatar
tmcw
untitled_indigoWren
Script
An interactive, runnable TypeScript val by tmcw
0
tmcw avatar
tmcw
temporalDuration
Script
An interactive, runnable TypeScript val by tmcw
0
tmcw avatar
tmcw
untitled_beigeCrab
HTTP
An interactive, runnable TypeScript val by tmcw
0
tmcw avatar
tmcw
randomVal
Script
An interactive, runnable TypeScript val by tmcw
0
tmcw avatar
tmcw
untitled_bronzeCow
HTTP
An interactive, runnable TypeScript val by tmcw
0
tmcw avatar
tmcw
untitled_beigeElephant
HTTP
const result = await sqlite.execute(` CREATE TABLE plugin_stats ( name TEXT, t TIMESTAMP DEFAULT CURRENT_TIMESTAMP, install_count NUMBER, like_count NUMBER, view_count NUMBER )`);
0
tmcw avatar
tmcw
placemarkGlobeMonitor
Cron
Figma plugin statistics collector I develop two Figma plugins - one that lets you create vector street maps in Figma and one that lets you generate vector globes . It's fun to watch them get some usage, but the Figma community site is pretty barebones. This uses one of the APIs on the Community page as an unofficial API and collects results in Val Town SQLite . You can see a chart of the resulting data on Observable .
0
tmcw avatar
tmcw
untitled_yellowBear
Script
An interactive, runnable TypeScript val by tmcw
0
tmcw avatar
tmcw
untitled_emeraldCockroach
Script
An interactive, runnable TypeScript val by tmcw
0