Skip to content

Instantly share code, notes, and snippets.

@lvnam96
lvnam96 / getRandomDarkHSLColor.js
Created September 4, 2017 06:27
Generate random dark HSL color (CSS) in JavaScript
const getRandomColor = () => {
const h = Math.floor(Math.random() * 360),
s = Math.floor(Math.random() * 100) + '%',
l = Math.floor(Math.random() * 60) + '%';// max value of l is 100, but I set to 60 cause I want to generate dark colors
// (use for background with white/light font color)
return `hsl(${h},${s},${l})`;
};
@odan
odan / xampp_php7_xdebug.md
Last active February 26, 2026 18:45
Installing Xdebug for XAMPP