Skip to content

Instantly share code, notes, and snippets.

View DanCouper's full-sized avatar

Dan Couper DanCouper

  • Strive Gaming
  • Newcastle, UK
  • 14:48 (UTC +01:00)
  • X @DanCouper
View GitHub Profile
function logColor(color, args) {
console.log(`%c ${args.join(' ')}`, `color: ${color}`);
}
const log = {
aliceblue: (...args) => { logColor('aliceblue', args)},
antiquewhite: (...args) => { logColor('antiquewhite', args)},
aqua: (...args) => { logColor('aqua', args)},
aquamarine: (...args) => { logColor('aquamarine', args)},
azure: (...args) => { logColor('azure', args)},
@DanCouper
DanCouper / daily-ui.md
Created November 16, 2022 01:24 — forked from Pustur/daily-ui.md
DailyUI – A list of every DailyUI design challenge

All DailyUI Challenges

  1. Sign Up
  2. Credit Card Checkout
  3. Landing Page (above the fold)
  4. Calculator
  5. App Icon
  6. User Profile
  7. Settings
  8. 404 page
#![feature(iter_array_chunks)]
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Instructions
///
/// Pick the best hand(s) from a list of poker hands.
///
/// See wikipedia for an overview of poker hands.
///
/// Ranking a list of poker hands can be considered a sorting problem.
/**
* @typedef {Object} RangeOpts
* @property {number} [step=1]
* @property {boolean} [isInclusive=2]
*/
class Range {
#index = 0;
#length = 0;