Blog
Snippets
Projects
About
Resume

Snippets

Reuseable code snippets collected by me

useAsync

Custom hooks to use an async effect

Validate color

Check if a string is a valid color

Shuffle an array

Shuffle an array in Javascript

Find and kill process on port

Find what process is running on given port and stop it (MacOS)

Code block syntax notes

Markdown Code block's basic and advanced syntax

Event Emitter

Simple Event Emitter or PubSub pattern

+/- days in Liquid

Adding/substracting days in Shopify's Liquid template language

Read files names

Read all file names inside a folder

toPlainEnglish

Replace all VNese letters with the corresponding English accents

.gitignore

Keep 1 file and ignore others in a directory

useLocalStorageState

Custom hooks to use local storage state