What Is Daylight Savings Time (DST)? - About 40% of countries use Daylight Saving Time. Learn how it works, what makes it controversial, and why it’s not actually saving any daylight.
/* | |
Day.js - format | |
https://day.js.org/docs/en/display/format | |
*/ | |
const getLastSundaysOfYear = (year = new Date().getFullYear()) => { | |
const currentYear = dayjs().year(year); | |
const lastSundaysOfYearMap = new Map(); | |
for(let i = 0; i < 12; i++) { | |
const lastSundayOfMonth = currentYear.month(i).endOf('month').day(0); |
/* | |
dynamic sorting an object array | |
https://dev.to/fpaghar/donesort-an-array-of-objects-ways-in-javascript-48hl | |
*/ | |
const SortDirection = { | |
Asc: 1, | |
Desc: -1 | |
} as const; |
/* | |
use case of how to merge 2 similat objects arrays into a new object array | |
combining the data from them | |
*/ | |
const ConsumptionType = { | |
TYPE_1: 'TYPE_1_VALUE', | |
TYPE_2: 'TYPE_2_VALUE' | |
} as const satisfies Record<string, string> |
Writing better Jira story names helps improve team understanding, prioritization, and sprint planning. A good story title should be clear, concise, and action-oriented, summarizing the value or task in a way that's immediately understandable.
If following Agile user story format:
comparison between dependabot and renovatebot | Perplexity.ai ( 2025-06-27 )
Here is a detailed, objective comparison between Dependabot and RenovateBot, focusing on their key features, strengths, and ideal use cases.
/* | |
useful references: | |
https://github.com/erkobridee/lab-pdf-lib/blob/83ef7e53e61227cef4293a6294979b1e551a3603/src/helpers/random.js#L4 | |
https://github.com/erkobridee/nx-todos/blob/1647f66518a6def9ddf7569ca7a2b6397337d09c/libs/shared/helpers/src/lib/values.ts#L25 | |
https://github.com/erkobridee/gatsby-typescript-app-starter/blob/5a7bcfbbe6ff014ecb360da35a3e8255fe80bf9e/src/helpers/values.ts#L21 | |
https://gist.github.com/rubinchyk/46d9868e2eb86d744abcb83b5b6d8d29 |
-
WCAG 101: Understanding the Web Content Accessibility Guidelines 2024-10-09
-
Accessibility | MDN - (often abbreviated to A11y) in web development means enabling as many people as possible to use websites, even when those people's abilities are limited in some way.
export const removeQueryParam = (key: string) => { | |
const existingValue = getFromQuery(key) | |
if (existingValue === null) { | |
return; | |
} | |
const url = new URL(window.location as any); | |
url.searchParams.delete(key); | |
history.pushState({}, '', url); |