Contact!

404!

Sorry, the page you are looking for isn't here.

You might like:

Regenerate WordPress media image sizes, programmatically

Regenerate WordPress media image sizes, programmatically

by Gav 25/02/2021

Learn how to regenerate and update WordPress media and image sizes both programmatically (without plugin), and also with a handy plugin.

Move up directory levels from the current file in PHP

Move up directory levels relative to the current file in PHP

by Gav 17/02/2021

Need to find a directory path relative to your current file? This is how we use dirname() and realpath() to move up directory levels in PHP.

Magic Constants in PHP. What they are and how to use them.

Magic Constants in PHP. What they are and how to use them

by Gav 15/02/2021

Ever seen constants like __DIR__ and __FILE__ being used in PHP? These are 'Magic Constants', and this is how we can use them.

Get the current mouse position from a JavaScript event

Get the current position of the mouse from a JavaScript event

by Gav 24/05/2020

Lets look at how to get the current clientX and clientY position of the mouse pointer from a JavaScript 'mousemove' event.

Multiple values in an Array, creating an inArray function in Javascript

Find single or array of values in JavaScript array using includes

by Gav 20/05/2020

Find out whether a JavaScript array contains single or multiple values by passing an array of values to includes() with the help of some() and every().

Find nearest number in array

Find the closest number in an array JavaScript

by Gav 12/11/2019

Would you like to match the closest number in an array using JavaScript? Find out how to achieve this using both reduce() and sort().

Web Component

Web Components tutorial: Custom Elements in JavaScript

by Gav 23/10/2019

What are web components? Learn about web components, the shadow DOM, styling and lifecycle callbacks in this JavaScript tutorial series.

Detecting Keypress JavaScript

Detect single and multiple keypress events: JavaScript

by Gav 16/10/2019

Learn how to use event listeners to detect and handle single and multiple keypress events in JavaScript. Add modifier keys to your application!

Adding Bulma to Nuxt

Adding Bulma to Nuxt.js with changeable variables

by Gav 12/04/2019

Using Bulma but don't know how to integrate it with Nuxt? I'll show you how to load Bulma into your Nuxt project with full control over variables.