Skip to content

Instantly share code, notes, and snippets.

View kolec1's full-sized avatar

kolec1

  • 3e Software House
  • Warsaw, Poland
View GitHub Profile
@jesugmz
jesugmz / display-raw-images-from-google-drive.md
Last active March 8, 2025 18:24
Display raw images from Google Drive

Display raw images from Google Drive

https://drive.google.com/uc?export=view&id={fileId} where file ID is the unique hash Google Drive gives when the shared link is created.

@peterc
peterc / recorder.cjs
Last active February 18, 2025 17:10
Record an HTML file to a MP4 video
// Open a supplied HTML file and record whatever's going on to an MP4.
//
// Usage: node recorder.cjs <path_to_html_file>
// Dependencies: npm install puppeteer fluent-ffmpeg
// (and yes, you need ffmpeg installed)
//
// It expects a <canvas> element to be on the page as it waits for
// that to load in first, but you can edit the code below if you
// don't want that.
//