Skip to content

Instantly share code, notes, and snippets.

View alexcloudstar's full-sized avatar
👻
VIM btw

Alex Cloudstar alexcloudstar

👻
VIM btw
View GitHub Profile
import { useState, useEffect } from 'react';
const useWindowSize = () => {
const [windowSize, setWindowSize] = useState<{
width: number | undefined;
height: number | undefined;
}>({
width: undefined,
height: undefined
});
#/bin/sh
# Inpiration: http://engineeringblog.yelp.com/2016/05/yelp-android-app-went-on-a-diet.html
# `-lossless` not used to give support for Android 4.0+
# Make sure cwebp is installed.
if ! type "cwebp" > /dev/null; then
echo "Please install cwebp to continue:"
echo "brew install webp"
exit 1
fi
{"version":1,"resource":"file:///Users/stefanalexandruromila/Projects/alexcloudstar/personal-projects/mern/kitchat-v2/server/src/exceptions/custom-exception.ts","entries":[{"id":"bO67.ts","source":"Fix all fixable ESLint issues","timestamp":1663569177594},{"id":"8UVm.ts","timestamp":1663569212545},{"id":"ZPzM.ts","timestamp":1663569246993},{"id":"CFXt.ts","source":"Fix all fixable ESLint issues","timestamp":1663569270099},{"id":"DkZr.ts","timestamp":1663569279648},{"id":"4NqN.ts","timestamp":1663569303342},{"id":"w4eK.ts","timestamp":1663569335094},{"id":"m3tH.ts","source":"undoRedo.source","timestamp":1663569437495},{"id":"hY7k.ts","timestamp":1663569455025},{"id":"Ox1D.ts","source":"Workspace Edit","timestamp":1663569456500},{"id":"tkKW.ts","source":"moved.source","timestamp":1663569472240},{"id":"iTUS.ts","source":"renamed.source","timestamp":1663569479939},{"id":"B6s5.ts","timestamp":1663569483732}]}