Skip to content
  • Home
  • Articles
  • Screencasts
  • Projects
  • About
  • Resources
  • Screencasts
  • Today I learned
  • Things I use
  • Talks
  • Newsletter
  • Home Home
  • Articles Articles
  • Screencasts Screencasts
  • Projects Projects
  • About About
  • Newsletter
  • Other Stuff
    • Blogroll People blogging great stuff.
    • Resources Bookmarks I want to keep for later.
    • Show some love Support my blog and newsletter.
    • Talks Talks I've given at conferences.
    • Things I use My hardware and software setup.
    • Today I learned 212 #TIL posts.
Stefan on Mastodon Stefan on Twitter RSS

Snippets โ€“ Page 9

Make magical things happen with a few lines
  1. How to select elements that are not children of other elements in CSS

    Published Jan 27 2021 in CSS

    Learn how to select elements that are not children of other elements using complex selectors in the CSS pseudo class :not.

  2. A React "if component"

    Published Jan 24 2021 in JavaScript , React

    A smart component to avoid ugly ternary operators in your React code.

  3. A picture element to load correctly resized webp images in HTML

    Published Jan 02 2021 in HTML , Performance

    A picture element snippet to load properly resized responsive webp images in browsers that support them.

  4. A git alias to show a detailed git branch overview

    Published Dec 17 2020 in Bash , git

    A nifty git alias to show available branches, time passed since their last commit and the last commit message.

  5. A trick to run shell examples with a leading $

    Published Dec 08 2020 in Bash

    A beautiful trick to copy and run shell example commands that include a leading $.

More articles

  1. Previous page
  2. Page 9 of 12
  3. Next page

Most popular posts

  • How to import JSON files in ES modules (Node.js)
  • A new method to validate URLs in JavaScript (2023 edition)
  • APIs to generate random user avatars
  • Top-level await is available in Node.js modules
  • How to override your dependency's dependencies (Node.js)
Read popular posts

Weekly newsletter

Weekly newsletter all around web development

Get weekly news

TIL: Today I learned in Web Dev

  • Self-closing tags are mostly meaningless in HTML
  • How to use EventTarget as a web-native event emitter
  • Safari allows to configure password autofilling
Learn something new

Blogroll

15 random RSS feeds I'm subscribed to. ๐Ÿ‘‡

Discover fantastic blogs

Other stuff

Topics

  • JavaScript (116 posts)
  • CSS (88 posts)
  • Tools (56 posts)
  • HTML (41 posts)
  • Bash (40 posts)
  • NodeJS (35 posts)
  • Accessibility (27 posts)
  • Web (22 posts)
  • git (20 posts)
  • Performance (19 posts)
  • macOS (15 posts)

Web Dev Learnings

  • Input elements hold references to their labels
  • Select multiple tabs in Firefox and Chrome
  • macOS offers a tool to remove backgrounds from images
  • em and strong are not announced by screen readers
  • How to quickly perform a syntax check of a JavaScript file
  • Package.json values are accessible in npm/yarn scripts

Popular articles

  • How to import JSON files in ES modules (Node.js)
  • A new method to validate URLs in JavaScript (2023 edition)
  • APIs to generate random user avatars

Recently updated resources

  • Timeless articles
  • Job hunt and interviewing
  • A Firefox-only minimap
ยฉ 2023 Copyright Stefan Judis. All rights reserved.
โ™ฅ๏ธ