Avatar

lbb00

lalala
Joined October 7, 2023
Likes
5
tmcw avatar
tmcw
devstats
HTTP
Developer Statistics This val lets you post statistics from your GitHub Actions runs to build charts of change over time. We do this by having a step at the end of our actions run like this: - name: devstats run: | curl -X "POST" "https://tmcw-devstats.web.val.run/" \ -H 'Authorization: Bearer ${{ secrets.DEVSTATS_TOKEN }}' \ -H 'Content-Type: application/json; charset=utf-8' \ -d $"{ \"name\": \"node_modules_kb\", \"value\": $(du -sk node_modules | awk '{print $1}') }" And setting a DEVSTATS_TOKEN value, which could be any short random value, both in Val Town environment variables and as a secret in your GitHub Actions configuration. Currently the name you attach to a statistic can be anything, and the value is expected to be a number.
4
rlesser avatar
rlesser
dependency_graph
HTTP
This is a deprecated URL for the Dependency Graph tool. Please go to https://www.val.town/v/rlesser/dependencygraph for the updated tool.
6
lbb00 avatar
lbb00
__htmlTesting
Cron
An interactive, runnable TypeScript val by lbb00
1
lbb00 avatar
lbb00
html
Script
Render html by tagged templates You can use this simple function to compose components, and you can also format the content within html`` elegantly in VSCode. Example const TitleTextDefault = ':)' const Title = (text)=> html`<h1>${text || TitleTextDefault}</h1>` // -> "<html><body><h1>:)</h1></body></html>" html`<html><body>${Title}</body></html>` // -> "<html><body><h1>!</h1></body></html>" html`<html><body>${Title('!')}</body></html>`
1
Next