Got my @codesandbox projects invite and had some time to look into it. I even found the debug panel 😅
Fabrice retweeted
Over the weekend @FWeinb added battery support too! The simulator really shines here, making it much faster to test battery status rendering and behaviors than is possible on hardware.
Natively backed object are currently only cleared when the tab is reloaded. This should be done using a FinalizationRegistry.
There might be a memory limit for a native handler, never hit.
The bluetooth tree (event bubbling) isn’t worth it I think. (github.com/WebBluetoothCG/we…)
Could WebBluetooth or other web platform features that apple is reluctant to support be implemented using safari web extensions on iOS 15?
Thermal printers 🖨️ are fun, using the web bluetooth api to print dithered images. Project Fugu 🐡 is awesome!
vimeo.com/597174649
Fabrice retweeted
i love everything that has this milky hi key look but this is especially beautiful in how it bridges the real world 😍
Exploring react-three-fiber in combination with web bluetooth scanning using AirPods. Connecting the physical word to the web.
See it in action: vimeo.com/543985808
Try it yourself: codesandbox.io/s/webbluetoot…
Exploring react-three-fiber in combination with web bluetooth scanning using AirPods. Connecting the physical word to the web.
See it in action: vimeo.com/543985808
Try it yourself: codesandbox.io/s/webbluetoot…
This is inspired by @shunyadezain:
xitter.cf/shunyadezain/status/13…
and building on a prior experiment by me codesandbox.io/s/airpods-web…
Playing with #r3f
👉codesandbox.io/s/fervent-tha…
adding text on model with react-three-fiber/drei✨
#threejs #reactjs
Ich habe aus den neuen Statistiken in der Corona-Warn-App ein paar @scriptableapp Widget gebastelt.
Gist: gist.github.com/FWeinb/91fc3…
Tried to rebuild Apples calendar widget in @scriptableapp and came pretty close.
Might be useful if you like the way it looks but want to add some other information too.
Source:
github.com/FWeinb/sb-layout
Played with @scriptableapp and build a html/jsx-like renderer for widgets.
More info here:
gist.github.com/FWeinb/9e85f…
![Sample code for creating a widget. The code is: const widget = render(() => {
const gradient = new LinearGradient();
gradient.locations = [0, 1];
gradient.colors = [new Color('#494949'), new Color('#1C1C1C')];
return h`
<ListWidget backgroundGradient=${gradient}>
<Text font=${Font.title2()}>Hello World</Text>
<Spacer length=${20} />
<HStack centerAlignContent>
<Text color=${Color.red()}>Left</Text>
<Spacer />
<Text color=${Color.blue()}>Right</Text>
</HStack>
<Spacer />
</ListWidget>
`;
});](https://pbs.twimg.com/media/ElFz3AfWkAAVw58.jpg?name=small&format=webp)
ALT Sample code for creating a widget. The code is: const widget = render(() => { const gradient = new LinearGradient(); gradient.locations = [0, 1]; gradient.colors = [new Color('#494949'), new Color('#1C1C1C')]; return h` <ListWidget backgroundGradient=${gradient}> <Text font=${Font.title2()}>Hello World</Text> <Spacer length=${20} /> <HStack centerAlignContent> <Text color=${Color.red()}>Left</Text> <Spacer /> <Text color=${Color.blue()}>Right</Text> </HStack> <Spacer /> </ListWidget> `; });
Fabrice retweeted
I still can't believe it, but Stitches if officially live 🚀
The CSS-in-JS library I've always wanted can now be used by you.
⬩ Fast
⬩ Tokens
⬩ Themes
⬩ Variants
⬩ Customisable
stitches.dev/docs
Updated my AirPods WebBluetooth Demo to show battery levels for unpaired AirPods (10% increments are reported) as well as open/close status of the battery case.
Try it here:
c4jfh.csb.app/
The WebHID API allows you to interact with so many devices. Some examples I build to control hardware build into your (newer) mac:
Force Trackpad: xgjzt.csb.app
Keyboard Backlight: qlq95.csb.app
Ambient Light Sensor: ix382.csb.app
Did another experiment with the WebHID API today. Create force feedback on the trackpad.
Demo here:
xgjzt.csb.app/
Should work on any Mac with a T2 chip since Chrome >=78 (behind a flag)










