Chris Biscardi
banner
chrisbiscardi.bsky.social
Chris Biscardi
@chrisbiscardi.bsky.social
Rustlang and Rustlang accessories

* YouTube: https://www.youtube.com/@chrisbiscardi
* Learn Rust: https://www.rustadventure.dev/
* Rust Discord: https://discord.gg/GJ5UfxzUcP
* Party Corgi Content Discord: https://discord.gg/partycorgi
I've got positions and rotations, but not at the same time :laughing:
November 8, 2025 at 4:38 AM
The info from the query includes language, etc so you can set it directly in whatever you use for screenshots.

I use transparent bg for the codeblocks, which makes it easier to place/rescale/etc into videos.

I'll can more of a writeup soon showing more details and some images and such.
November 7, 2025 at 9:24 PM
The query is basically this. (nushell, so insert jq or whatever you like):

typst query main.typ "raw" | from json | where block | get text | save output.codeblocks.json

This dumps all codeblocks into a json file as an array of strings. Then I take this file and ingest it into remotion for stills.
November 7, 2025 at 9:24 PM
yeah, I'm not particularly happy with the codeblock screenshots at the moment (its a bit slow, but not slower than doing it manually) so I haven't written it up but its basically regular codeblocks in typst (any raw codeblock will do, the query actually returns blocks and inline).
November 7, 2025 at 9:24 PM
100 lines is not too bad but I do find myself pulling this lib.typ into multiple projects and it will definitely grow more (custom note needs a PDF target impl and such)
November 7, 2025 at 10:02 AM
Nice, I'll have to check those packages out.

The single lib.typ is because most of it is "switch configuration based on target" for things like image handling. It's only 100 lines or so and provides about 3 functions (a template, code highlight, custom note)

github.com/ChristopherB...
christopherbiscardi.github.com/lib.typ at b8d2b5221dfed9cc07f815556c92fc1680ae8d5d · ChristopherBiscardi/christopherbiscardi.github.com
Content for christopherbiscardi.com. Contribute to ChristopherBiscardi/christopherbiscardi.github.com development by creating an account on GitHub.
github.com
November 7, 2025 at 10:01 AM
root is in one of these piles... somewhere... I think...
November 5, 2025 at 2:57 PM
Can you upload this to my nightly branch. Haven't seen much sleep lately.
November 5, 2025 at 2:37 PM
Starting a patreon is one thing, but building the community that funds the patreon typically has to be the first concern.

For example: if everything you do is locked behind a patreon paywall, then nobody will be able to share that with others and it's hard to grow the group of patreon members.
October 21, 2025 at 6:53 PM
(The latest was a wasm document and related code examples)
October 20, 2025 at 11:14 PM
Yeah that's a problem in the "pick the closest wall" section of the demo. Given two rays with a series of hits each, how do you pick the right wall to draw the triangle on
October 19, 2025 at 12:07 PM
Yeah definitely an open question, and I think with some use case based answers
October 19, 2025 at 12:05 PM
nope, that's it. Its nothing special. I'll do some profiling and maybe some optimizations after I fix the bugs that are left. will look into more serious optimizations like bvh, etc if I need to.
October 19, 2025 at 2:03 AM