Grep and Node.js

One of my most frequently used command line utilities is Grep, specifically grep -lir which searches for text inside files (great for finding where else I referenced that variable I just renamed). As I started using Node.js more and more (and consequently my node_modules folder grew bigger and bigger) I found myself getting more annoyed… Continue reading Grep and Node.js

Regex is MAGIC 🧙‍♂️

This is going to be a quick one, I should have included it in my post on “Printing the Internet” but I forgot. I do more manual data manipulation then I care to, but one of the biggest helpers in these endeavors is Regular Expressions. (the biggest help, BY FAR, is VSCode’s multiple cursors). My… Continue reading Regex is MAGIC 🧙‍♂️

My new Git-moji setup

I’ve been a HUGE fan of Ahmad Awais for awhile now. Among the things he’s created that I use daily are the git commit messages from his Emjoi Log repo. With the announcement that Catalina is going to default to zsh instead of bash I decided to explore the new shell and came across Ali… Continue reading My new Git-moji setup

VVV Multitenant update✌️✌️✌️ 🏢🔼

In the past few years, I’ve given a few talks about using a multitenant WordPress install for local development. I just finished doing some major updates, most significantly switching to VVV’s built-in certificate for HTTPS, and pushed the updates to the Github repo for the project. Feel free to give it a try if you’re… Continue reading VVV Multitenant update✌️✌️✌️ 🏢🔼

Super quick note on something that has been bugging me lately.  If you’re using dot notation to access Javascript properties, you can’t have a property name with dashes in it (e.g. image.attributes.media_details.sizes.plugin-name-headshot ). Instead you need to use bracket notation with quotation marks. So in replace the example above with image.attributes.media_details.sizes['plugin-name-headshot'].

The cheap-n-easy way to use “templates” in WordPress plugins

I’m continuing to work on the plugin I talked about in my last post, and have gotten to the point where we’re working on the front end display of the data. I recently sat down and really dedicated myself to figuring out the WordPress Plugin Boilerplate and really like the concept of using “partials” to reuse… Continue reading The cheap-n-easy way to use “templates” in WordPress plugins