Skip to content

Instantly share code, notes, and snippets.

@lukewhitehouse
lukewhitehouse / README.md
Created September 15, 2015 20:32
Social media links

Social media sharing links

Simple social media links for your projects. Initially created for WordPress projects, however, extremely flexible and easily modified.

Instructions

Add this partial to your PHP file, or port this into another language as you see fit.

@lukewhitehouse
lukewhitehouse / README.md
Last active January 1, 2018 03:46
Remove Categories/Tags in WordPress

Remove Categories/Tags in WordPress

This code completely removes the category & tag taxonomies from WordPress which are available by default.

Instructions

Put this snippet within your functions.php within your WordPress theme.

@lukewhitehouse
lukewhitehouse / README.md
Last active May 1, 2016 08:35
Sublime Text: Snippets

Sublime Text: Snippets

A collection of snippets that are pretty useful for Sublime Text.

Contents

dump.sublime-snippet

This allows you to quickly print out a vardump() wrapped between <pre> tags, which is ten times easier to read.

print.sublime-snippet

This allows you to quickly print out a print_r() wrapped between `` tags, which is ten times easier to read.

@lukewhitehouse
lukewhitehouse / README.md
Last active September 10, 2015 11:01
Check for if an element is in view

Check for if an element is in view

This script allows you to tell when an element becomes visible in the browser window. You can use this to apply styling/animations to elements.

Instructions

Add this to your javascript. Make sure jQuery is called before this script.

Requirements

  • jQuery