Rewrite jQuery AJAX calls as ES6 Promises in order to run code synchronously.
Create a simple router in PHP by directing all traffic to one file.
A quick guide on how to create a global snippet in Visual Studio Code
Rewrite URLs with Apache and PHP for logical path structure.
Learn how to take some redundant and repetitive code and apply the DRY (Don’t Repeat Yourself) principle to refactor the code to be more efficient.
Learn the function to write a custom error log in PHP.
How to use the MAMP PHP executable to set up a cron job.
How to add basic authentication with username and password to a Node app running on an Express server, similar to htpasswd in Apache.
Recently, I needed to find the corresponding public key from a private key (.pem) to give a Linux user access to a server. I used the below code to generate…
Recently, I was working with some JSON decoded into a PHP array, and I needed to remove an item from the associative array. With only the value, I wasn’t sure…
Use jQuery to smoothly scroll the screen when an anchor link is clicked.
How to prevent scrolling on the mouse from zooming in an embedded Google map, with examples.
In this example, we’ll use CSS to infinitely fade between two images.
Create a CSS-only scrolling effect.
Create a permanent redirect for all files on a website to use the HTTPS protocol.
The bare minimum skeleton frame to start a website with HTML.