Skip to content

Instantly share code, notes, and snippets.

View tdiluzio's full-sized avatar
🌴
On vacation

Terry Di luzio tdiluzio

🌴
On vacation
View GitHub Profile
export const normalizeString = (str: string) =>
str.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
@tdiluzio
tdiluzio / christianHolidays.ts
Last active November 24, 2021 12:06
Metropolitan France Holidays
// Christian holidays utils
// base ressources
// https://gist.github.com/johndyer/0dffbdd98c2046f41180c051f378f343#gistcomment-3774086
// https://www.codeproject.com/Articles/10860/Calculating-Christian-Holidays by Jan Schreuder
import { addDays, format, subDays } from 'date-fns';
// https://gist.github.com/johndyer/0dffbdd98c2046f41180c051f378f343#gistcomment-3774086
// getEaster day for a given year
function getEaster(year: number) {
import React, { useRef, useEffect } from 'react';
function createRootElement(id) {
const rootContainer = document.createElement('div');
rootContainer.setAttribute('id', id);
return rootContainer;
}

Keybase proof

I hereby claim:

  • I am tdiluzio on github.
  • I am t3_rry (https://keybase.io/t3_rry) on keybase.
  • I have a public key ASCaMTtM3gm2jRFnfT-Hw6HWxjf51yFt61keY_hx3xP-FAo

To claim this, I am signing this object: