Public vals
779
stevekrouse avatar
stevekrouse
testReceive
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
rtzExample
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
safeCounter
Script
An interactive, runnable TypeScript val by stevekrouse
1
stevekrouse avatar
stevekrouse
updateThreadsafeStateEx
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
threadsafeStateEx
Script
// set by stevekrouse.updateThreadsafeStateEx at 2023-07-23T05:21:52.145Z
0
stevekrouse avatar
stevekrouse
dlock
Script
dlock - free distributed lock as a service https://dlock.univalent.net/ Usage API Acquire a lock. The id path segment is the lock ID - choose your own. https://dlock.univalent.net/lock/arbitrary-string/acquire?ttl=60 {"lease":1,"deadline":1655572186} Another attempt to acquire the same lock within its TTL will fail with HTTP status code 409. https://dlock.univalent.net/lock/01899dc0-2742-44f9-9c7b-01830851b299/acquire?ttl=60 {"error":"lock is acquired by another client","deadline":1655572186} The previous lock can be renewed with its lease number, like a heartbeat https://dlock.univalent.net/lock/01899dc0-2742-44f9-9c7b-01830851b299/acquire?ttl=60&lease=1 {"lease":1,"deadline":1655572824} Release a lock https://dlock.univalent.net/lock/01899dc0-2742-44f9-9c7b-01830851b299/release?lease=42
4
stevekrouse avatar
stevekrouse
double
Script
double(10)
0
stevekrouse avatar
stevekrouse
testSpeedInsights
Script
Add robots.text for Google
0
stevekrouse avatar
stevekrouse
setPollRSSInkAndSwitch
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
pollRSSInkAndSwitch
Script
// set at Thu Feb 06 2025 18:01:03 GMT+0000 (Coordinated Universal Time)
1
stevekrouse avatar
stevekrouse
hiNicoFromGists
Script
Import from Github Gists You can import from Github Gist's raw URL: await import("https://gist.githubusercontent.com/...") This example pulls from this gist: example.js Which has this code: export const hi = function() { return "Hi Nico!" }
1
stevekrouse avatar
stevekrouse
valtownAPIExamples
Script
An interactive, runnable TypeScript val by stevekrouse
1
stevekrouse avatar
stevekrouse
limit
Script
This is a non-usable fork of https://www.val.town/v/rlimit.limit - use that one instead
0
stevekrouse avatar
stevekrouse
limitedVal
Script
// Forked from @rlimit.limitedVal
0
stevekrouse avatar
stevekrouse
isValidURL
Script
Check if a URL is valid Returns true if a URL is valid and false if not
0
stevekrouse avatar
stevekrouse
exampleTelegramMessage
Script
An interactive, runnable TypeScript val by stevekrouse
0