Skip to content

Instantly share code, notes, and snippets.

View didier's full-sized avatar
🌍
Focused on ethical, sustainable and accessible digital experiences.

Didier Catz didier

🌍
Focused on ethical, sustainable and accessible digital experiences.
View GitHub Profile
@didier
didier / settings.jsonc
Last active April 18, 2024 11:02
Zed Settings
{
// —— Editor
"vim_mode": false,
"relative_line_numbers": true,
"preferred_line_length": 120,
"tab_size": 4,
"soft_wrap": "editor_width",
"hard_tabs": true,
"base_keymap": "VSCode",
"file_types": {
@didier
didier / download-all-images.js
Created April 1, 2022 09:46
Download all images from a page
const images = document.querySelectorAll('img').forEach((image, index) => {
const filename = `${window.location.host}-${index}.jpg`
const element = document.createElement('a');
element.setAttribute('href', image.src);
element.setAttribute('download', filename);
document.body.appendChild(element);
element.click();
document.body.removeChild(element);
})
@didier
didier / machine.js
Last active April 14, 2021 21:50
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@didier
didier / tailwindcss-3-colors.css
Last active February 9, 2024 06:06
Tailwind >3.0 colors as CSS variables
:root {
--inherit: inherit;
--current: currentColor;
--transparent: transparent;
--black: #000;
--white: #fff;
/* --slate */
--slate-50: #f8fafc;
--slate-100: #f1f5f9;