Skip to content

Instantly share code, notes, and snippets.

View liam-jones-lucout's full-sized avatar

liam-jones-lucout

View GitHub Profile
@liam-jones-lucout
liam-jones-lucout / Contract Killer 3.md
Created January 13, 2023 20:50
The latest version of my ‘killer contract’ for web designers and developers

When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.

Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008

…………………………

@liam-jones-lucout
liam-jones-lucout / isBritishSummerTimeInEffect.ts
Last active July 16, 2024 10:31
Is British Summer time BST
export function isBritishSummerInEffect(date: Date) {
const possibleBstHour = parseInt(
date
.toLocaleTimeString("en-GB", { timeZone: "Europe/London" })
.split(":")[0],
);
const utcHour = now.getUTCHours();
return possibleBstHour !== utcHour;
}