Just a quick heads up in case you run into this issue. I ran into this after upgrading to macOS Big Sur. To fix it, run this in a terminal: After that, you’ll be prompted to install the command line tools and that should be it. If that doesn’t work, in this link are a… Continue reading How to fix: “gyp: No Xcode or CLT version detected”
You can easily reinstall WordPress on an existing site using WP-CLI with this command: It’s important to note the two parameters: [–skip-content]: Download WP without the default themes and plugins.[–force]: Overwrites existing files, if present. We want this in order to overwrite any corrupted or infected files. Read more: wp core download – WP-CLI
A very simple reference for compressing/extracting tar.gz files, which I always forget how to do.
px → rem quick reference
Say you have an <a>, <link> or other HTML element and you need to extract its href (or other) attribute. You can extract those values using DOMDocument quite easily: Link to Repl.it PHP: DOMDocument
You don’t need to add the whole Bootstrap code and a zillion dependencies and plugins if you’re just using its grid system. You can use BS’s grid system as a standalone dependency:
As frontend developers or designers, many times we’re requierd to design or implement accordion-style components. While there are plenty of libraries out there, the easiest way to accomplish the same results without adding bloat is to use the details HTML element.
Still an experimental feature, but soon we will be able to set an aspect ratio to any HTML element via CSS, without any padding hacks!
Recently, we were wondering with a couple of friends how much data Spotify was sucking out of our cell phone data plans. I knew that with a 3GB/mo. plan I could get away with most of my needs, but there was also streaming quality into the mix.
Brain dump about CSS Custom Properties, AKA CSS Variables They are not variables They are actually called CSS custom properties. Huh. We’ll refer to them as variables for brevity. Declaring variables To declare new variables, you just add a new property that begins with –, inside a ruleset: What is :root? If you notice, in… Continue reading Everything I know about CSS
Variables Custom Properties