Posts tagged “code”

WordPress Wednesday: Closing Slash Hack

WordPress Wednesday: Closing Slash Hack

How to get rid of annoying closing slashes that prevent HTML from validating.

Share on Threads

Share on Threads

Here is the code to add a share to threads link on your Wordpress site.

WordPress Wednesday: Grab First Image from Post

WordPress Wednesday: Grab First Image from Post

In which I explain how to parse the first image from a post

WordPress Wednesday: Huge Archives

WordPress Wednesday: Huge Archives

In which I explain how to beautifully display enormous WordPress archives in a compact format

If you need to strip all non-numeric characters from a string (except for the period character) using JavaScript, try:

string.replace(/[^\d.]/g, "");

What Is This?

davidgagne.net is the personal weblog of me, David Vincent Gagne. I've been publishing here since 1999, which makes this one of the oldest continuously-updated websites on the Internet.

bartender.live

A few years ago I was trying to determine what cocktails I could make with the alcohol I had at home. I searched the App Store but couldn't find an app that would let me do that, so I built one.

Hemingway

You can read dozens of essays and articles and find hundreds of links to other sites with stories and information about Ernest Hemingway in The Hemingway Collection.