Skip to content

Instantly share code, notes, and snippets.

View action-hong's full-sized avatar

kkopitehong action-hong

  • Xiamen, China
  • 21:19 (UTC +08:00)
View GitHub Profile
@thomasdenney
thomasdenney / blockly-png.js
Last active May 18, 2023 02:57
Generates a PNG image from a Blockly workspace
/*
I've only tested this with http://codethemicrobit.com in Chrome, but it should work in other browsers
Paste the JS below into the Chrome Developer Tools Console and hit enter
It will then open the generated PNG file in a new tab, from where it can be copied/saved
Based on https://gist.github.com/acbart/dcda677555e97b59c1c91554270dc80b, with adaptations for styling
and output format
*/
//By default the image will be rendered at the same resolution as your display, but if you increase
//this value you can render a much higher resolution image, which looks better on high density displays
@staltz
staltz / introrx.md
Last active July 4, 2024 10:11
The introduction to Reactive Programming you've been missing