Code Snippets

Showing 11 to 20 of 32 posts.


Posted on June 6th, 2015 by Graeme

SASS on Mac

Compile style.scss to style.css within the same directory, and listen for changes

Read more...


Posted on May 22nd, 2015 in WordPress by Graeme

Adding tags to WordPress default search

Code snippet modified from rmfeier.ne to include tags in a WordPress search

Read more...


Posted on May 15th, 2015 in WordPress by Graeme

Use custom taxonomies as profile fields in BuddyPress

Code snippet to show how you can use a custom taxonomy as a profile field in BuddyPress (WordPress)


Posted on April 28th, 2015

Quickly batch resize images using ImageMagick

ImageMagick can be used to quickly batch resize images without using any crazy user interface such as Photoshop, or GIMP.

Read more...


Posted on March 5th, 2015 in Android by Graeme

Using Telnet to change the settings on an Android emulated device

When the android emulator is running, to change settings on the emulated phone, you can simply use the terminal and telnet

Read more...


Posted on October 14th, 2014 by Graeme

Introduction to @font-face

If you make use of the @font-face rule in your CSS file, you can make use of any custom fonts on your website, irrespective of the user’s browser.

Read more...


Posted on August 27th, 2014 by Graeme

Using an interface

How to define and implement an interface class

Read more...


Posted on August 12th, 2014

Interface or Abstract class

“An Abstract class without implementation just looks like an Interface..”

Read more...


Posted on August 4th, 2014 by Graeme

RSS namespaces

Here we use a sample bit of RSS that contains two thumbnails, which belong to a namespace.

Read more...


Posted on July 17th, 2014 in PHP, WordPress by Graeme

WordPress infinite scroll

How to implement infinite scroll in WordPress by setting a post offset value for pagination

Read more...