Avatar

tr3ntg

Joined June 9, 2023
Public vals
13
tr3ntg avatar
tr3ntg
makeCallOnEmail
Email
Make Phone Call with Twilio Upon Email Receipt Backstory I bought a Bluetooth temperature monitor to monitor the temp in one of my rooms. I made sure to purchase one that sends alerts for temperatures that are out of a given range. Unfortunately, those notifications can’t be set to override Focus modes or when your phone is on Silent. But the app does allow you to add any email address for an alert. So, a Val Town Email handler + Twilio, and I’ve got myself an unmissable alert for if that room ever gets too hot or cold. 🔥🧊 How to Use Fork this Val, fill in your environment tokens (including phone number) and watch a call come through when you email the Val! Caveats This will call you on EVERY email. This works for my use case as the email is only registered with my temperature monitoring device. (You'll need to keep your emailing Val private, or add on some sort of verification to prevent errant emails and calls.)
0
tr3ntg avatar
tr3ntg
googleGenerativeAIStreamingExample
HTTP
Google Generative AI Streaming Example Example Val showing how to set up an authenticated Google GoogleGenerativeAI client. Prerequisite: Follow Google's Getting Started guide to get an API key and view some example methods.
1
tr3ntg avatar
tr3ntg
publicDocumentEditor
Script
An interactive, runnable TypeScript val by tr3ntg
0
tr3ntg avatar
tr3ntg
replaceEmojisWithImages
Script
Accepts an HTML string ( body.html ) and returns an emoji-escaped replacement. The purpose of this is due to official PDF spec's lack of support for emojis. This can be seen in the Anvil PDF Generation service as well - emojis are not rendered. node-emoji github here - replaces all emojis with spans emoji images for replacement are hosted at netlify (sourced from private repo)
0
tr3ntg avatar
tr3ntg
md5
Script
An interactive, runnable TypeScript val by tr3ntg
0
tr3ntg avatar
tr3ntg
scrapeMSUrlPublic
Script
An interactive, runnable TypeScript val by tr3ntg
1
tr3ntg avatar
tr3ntg
getNextMSUrlToScrapePublic
Script
An interactive, runnable TypeScript val by tr3ntg
0
tr3ntg avatar
tr3ntg
untitled_silverGoose
Script
An interactive, runnable TypeScript val by tr3ntg
1
tr3ntg avatar
tr3ntg
publicTimePlayedLeaderboard
Express (deprecated)
An interactive, runnable TypeScript val by tr3ntg
1
tr3ntg avatar
tr3ntg
testHTML
Script
An interactive, runnable TypeScript val by tr3ntg
1
tr3ntg avatar
tr3ntg
editDiscordMessage
Script
// Edit Discord message via webhook
1
tr3ntg avatar
tr3ntg
paperMCListener
Script
// Listen to webhooks from PaperMC
1
tr3ntg avatar
tr3ntg
myApi
Script
An interactive, runnable TypeScript val by tr3ntg
1
Next