Skip to content

Instantly share code, notes, and snippets.

View aduh95's full-sized avatar

Antoine du Hamel aduh95

View GitHub Profile

[Go to memo](./Generate random colors that look great on white background.md).

@aduh95
aduh95 / record.js
Created March 2, 2024 15:38
Record canvas to make a video
function recordCanvas(canvas, time) {
const frameRate = 60;
const mimeType = "video/webm";
const chunks = [];
function saveChunks(evt) {
// store our final video's chunks
if (evt.data.size > 0) {
chunks.push(evt.data);
}
@aduh95
aduh95 / home.nix
Last active July 21, 2025 14:24
Nix Home Manager file
{ config, lib, pkgs, ... }:
{
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"mongodb-ce"
"terraform"
];
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage