- Home
- Today I learned
Today I Learned
Keep learning new things... (almost) everyday.
"Today I learned" is a common thread in the tech community where people share what they've learned in a simpler and shorter version rather than a full blog post. You can imagine it as a "Knowledge pills".
How to implement an OpenAI token counter in your JS app
Read moreHow to Check If Your Astro App (or Vite) is Running in a Browser
Read moreHow to exclude files from Astro dev (watch)
Read moreHow to solve "Permission to x denied to github-actions[bot]"
Read moreHow to get the next X day using DayJS
Read moreHow to type Astro middleware locals
Read moreHow to fix "Semicolon or block is expected" using Tailwind with Svelte
Read moreHow to fix "digital envelope routines::unsupported" error in Node
Read moreVSCode finally has a "Warn Before Quitting" option
Read moreHow to highlight a quoted text on GitHub Markdown
Read moreHow to easily add a property to a function in TS code
Read moreHow to fix "resolve.alias" problem in Vite.js
Read moreWe can prevent elements to be selected using CSS
Read moreHow To enforce Word Wrap for a language in VSCode
Read moreThere is an npm package that helps delete node_modules
Read moreHow to fix "command not found" for global pnpm packages
Read moreHow to spread all arguments in a .sh script
Read moreWhen you select an element on Chrome dev tools element inspector, an alias to it is automatically created
Read moreHow to transfer a file between Windows and WSL
Read moreHow to fix css lint when writing Tailwind inside Svelte style tag
Read moreThe promise's .then() method accepts an error callback as second param
Read moreHow to prevent unnecessary Vercel builds
Read moreWe can quickly see a calendar preview on macOS terminal
Read moreHow to easily identify unhandled rejections in NodeJS
Read moreHow to set a global .gitignore
Read moreHow to ignore a string if contains certain match using RegExp
Read moreHow to listen for any DOM update
Read moreHow to filter everything after a word using regex
Read moreHow to get only draft content on Strapi
Read moreThere's a website that shaming HTML bad practices
Read moreA anchor tag without "href" is not focusable
Read moreHow to easy fix iTerm2 text navigation (cmd+arrow)
Read moreWe can choose the suggestion order in VSCode
Read moreHow to format Rust code "on save" in VSCode
Read moreHow to run Cargo in a nested folder
Read moreHow to delete all local and remote tags from a Github Repo
Read moreThere is a website which generates typography scale
Read moreThere's a website that offers diverse mock profile picture for free
Read moreAccording to Google, the minimum size for an icon be clicklable is 24x24
Read moreWhen publishing npm packages with lerna through GH actions, we need more params to checkout
Read moreWe can decorate an export with @internal to prevent unnecessary d.ts types
Read moreHow to disable IPV6 on Ubuntu
Read moreWe can use JSDocs to have a visual indication on VSCode something is deprecated
Read moreUsing tilde (~) in a dependency version on package.json specifies a patch or minor range to be installed
Read moreIn setTimeout, the 3thrd+n argument is passed to the callback
Read moreHow to prove that arrow function does not have "this"
Read more