Skip to content

Instantly share code, notes, and snippets.

View code-boxx's full-sized avatar
🏠
Working from home

Code Boxx code-boxx

🏠
Working from home
View GitHub Profile
@code-boxx
code-boxx / 0-PHP-CALENDAR.MD
Last active December 25, 2023 19:53
PHP MYSQL calendar
@chak10
chak10 / randomDarkColor.js
Last active December 9, 2023 06:04
Javascript Random Dark Color
function randDarkColor() {
var lum = -0.25;
var hex = String('#' + Math.random().toString(16).slice(2, 8).toUpperCase()).replace(/[^0-9a-f]/gi, '');
if (hex.length < 6) {
hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
}
var rgb = "#",
c, i;
for (i = 0; i < 3; i++) {
c = parseInt(hex.substr(i * 2, 2), 16);