Collection of stuff I learn day to day. Things I have picked up on Hacker News, open-source, Twitter or day to day work. Inspired from jbranchaud.
I also keep collections of links I come across on Raindrop.
Last updated: Mon Oct 28 2024, 20:10:08 GMT+0000 (Coordinated Universal Time).
54 TILs so far:
- Apply Styles To The Last Child Of A Specific Type
- Astro has built-in support for
clsx
- Conditional Styling For Unsupported CSS Features
- Dynamically change styles from HTML or JSX
- Finding Empty Elements With
:empty
- :root Has Higher Specificity Than html
- Auto-resizing textarea/input styles
- Clone A Repo Just For The Files, Without History
- Editing Old Commits Using CLI or with Lazygit
- Show file difference in
git
style - Easier Code reviews with Git Colored Move Diffs
- Update The URL Of A Remote
- Using git offline
- New Ways to Walk Through Past Commits in git
- Skipping a GitHub Actions step without failing
- Run GitHub Actions locally
- Set environment variables for all steps in a GitHub Action
- Check and generate your site's Favicons
- Quickly Find the Element That Is Causing Horizontal Scrolling
- Create an SVG sprite sheet
- Determine Which Button Submitted The Form
- disabled vs aria-disabled attributes
- Yet Another Email Hiding Technique
- Submit A Form With A Button Outside The Form
- Capitalise Initials
- The English Alphabet as a String
- Event Delegation in JavaScript
- How to Not Fill Up an
Array
- Remove the Duplicate Elements from the Array of Objects
- A Better Number() and Number.parseFloat()
- Sort Alphabetically
- Sort Array of Numbers
- Be informed of when a browser document is visible
- Simplify Your Components with Finite State Machines and Derived States
- Common Reasons of Infinite Loops in React and How to Fix Them
- Using useState for one-time initialisations in React Components
- React Hooks in a Nutshell
- Handle a PDF in React