Skip to content

Instantly share code, notes, and snippets.

@raphael-leger
raphael-leger / lazyWithRetry.js
Last active July 30, 2024 08:46
React LazyWithRetry
import { lazy } from 'react';
const lazyWithRetry = (componentImport) =>
lazy(async () => {
const pageHasAlreadyBeenForceRefreshed = JSON.parse(
window.localStorage.getItem(
'page-has-been-force-refreshed'
) || 'false'
);
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active October 11, 2024 01:06
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k