The WordPress plugin repository at wordpress.org/plugins is a great resource. I often use WP CLI to install plugins on my WordPress site from there, e.g. wp plugin install stop-emails –activate Sometimes I’m dealing with plugins that are not on the official WordPress.org repository but I’d still like to install them with WP CLI. If they […]
When using Git, sometimes (often) I find myself forgetting to delete local branches after merging them. This command deletes this branches (and I’ve included a Git alias to make it easy to use in the future).
When creating new posts for a video demonstration, I wanted to display a consistent date. While my first thought was to reset my system clock, this snippet overrides the date when the post is first created, which worked for me.
When creating slides for my talks I use Reveal.js, which allows me to create slides using HTML. These are my general notes about creating presentations this way.
I use Reveal.js when creating slides for my presentations. Often I want persistent elements on all of the slides (for example my twitter handle @salcode or the conference hash tag). I’ve found the easiest way to do this is by adding a little bit markup and custom CSS.
I was looking for a quick way to reference PHP documentation from within Vim. The PHP Manual Vim Plugin allows me to do just that.
I spend a lot of time working in issue trackers (e.g. GitHub), which involves writing a lot of markdown. Sometimes, perhaps I write too much information and it would be nice to allow the person reading to optionally skip some details. Traditionally, I accomplish this with a “Summary” section but now with collapsible sections in GitHub Issues, I can write even tidier comments.
Did you hear about the astronomer who showered with a tiny hamburger slider?
He upgraded to a quarter pound burger because wanted a “meatier shower”.
In one of my other posts I am displaying some URLs on their own line as part of the content however the WordPress oEmbed functionality is turning these into rich HTML. I was able to suppress this by wrapping the URLs in HTML span tags.
On a WordPress project, I wanted to display the full post on the blog archive unless a manual excerpt had been created for the post (in which case I wanted to use the manual excerpt). Here is the code I used to make this happen.