@greweb

17.8K posts

@greweb banner
@greweb

@greweb

@greweb

creative coder – 🧑‍💻coding procedural art with RNGs 🤖✒️ pen plotter

Paris Katılım Ocak 2010
1.3K Takip Edilen5.5K Takipçiler
@greweb
@greweb@greweb·
Good ol' NE555 never disappoints #diy
@greweb tweet media
English
1
0
2
382
William Candillon
William Candillon@wcandillon·
You are renderful: introducing Redraw, a new grade of 2d primitives for Web and Native
English
19
49
384
99K
@greweb
@greweb@greweb·
Finished soldering of garden sensors (water tank temperature and height) => LoRa => home assistant integration where I can see how much water remains and trigger well pump. Electronics ready. Got to finish prototyping all 3D print objects and solar panel power to figure out now.
@greweb tweet media@greweb tweet media
English
0
0
2
721
@greweb
@greweb@greweb·
biggest challenge of the circuit was to properly manage the current surge that the servo needs, it would easily reboot otherwise, it needs a good alim and proper accumulator and mosfet. nice to learn it the hard way
English
0
0
2
89
@greweb
@greweb@greweb·
All custom 3D prints 🤓
@greweb tweet media
English
1
0
0
99
@greweb
@greweb@greweb·
Revamping my home made esp32 tibetan clock driver. 6 months later, re-code-vibed a new firmware from zero with pio, it's 10 times faster with Claude Code. smooth Home Assistant integration. (the thing is a bit far from wifi tho)
English
1
0
2
622
Devon Govett
Devon Govett@devongovett·
Seems like a good opportunity to share a trick I used on the React Aria website to make headings scale to fit the viewport on mobile, even with SSR. I used fontkit, a library I wrote 10 years ago to parse fonts and layout glyphs, to measure the width of the heading at build time in the "em" unit. width = font.layout('DateRangePicker').advanceWidth / font.unitsPerEm This is a size independent measurement using the font's internal metrics. When multiplied by any font size, you get the pixel width of the text. To calculate the font size, set this as a CSS variable and divide the target width (100vw minus padding). Clamp to make sure it doesn't get too big or small. font-size: clamp(35px, (100vw - 32px) / var(--text-width), 55px) And tada! You have perfectly scaling text no matter the viewport size. 🎉
English
10
32
592
48.2K
Amaras
Amaras@NomPasDisponibl·
@g_endive @Thomas_bu__ Oui bien sûr on est passé de 0.01% des gens qui connaissent son existence à 20% qui l'utilisent
Français
2
0
1
912
@greweb
@greweb@greweb·
Plot from phone 😜
@greweb tweet media
English
0
0
0
101
@greweb
@greweb@greweb·
needed this 3 years ago, codevibing make it faster😁 To ease pen plotter usage, a server allows remote control, Raspberry Pi + Home Assistant integration to plug it to voice announcements / phone notifications when plot ends. github.com/gre/penplotter… #penplotter #homeassistant
English
1
0
12
497