Skip to content

Instantly share code, notes, and snippets.

View xavhan's full-sized avatar
💭
Hello

Xavier Haniquaut xavhan

💭
Hello
View GitHub Profile
#!/usr/bin/env zx
// you need zx installed
// run with `zx smoketest.mjs`
const BASEURL = 'http://localhost:3000';
const COMMON = [
'header',
'footer',
]
@xavhan
xavhan / deprecated.ts
Created December 1, 2021 14:02
Use TS to force document your deprecations
const log = true; // comming from logging service (dont log in prod)
//
type Deprecation = {
what: string;
because: string;
recommendation: string;
adr_link: string;
}
@xavhan
xavhan / fix-vscode-dark-high-contrast-theme.md
Last active August 20, 2025 10:00
Fix vscode dark high contrast theme

Add those line into your settings.json file

"workbench.colorCustomizations": {
  "diffEditor.removedTextBackground": "#FF000055",
  "diffEditor.insertedTextBackground": "#00ff0055",
  "diffEditor.insertedTextBorder": "#00000000",
  "diffEditor.insertedLineBackground": "#00ff0055",
 "diffEditor.diagonalFill": "#FFFFFF55",