Snippets

These are a collection of code snippets I've used in the past and saved.

Truncate text within a specific line
CSS targets only Safari browser
Quick shorthand for selecting elements
Format a number to a string with comma
React hook for copyting a text
Convert byte units to reasonable units