WP-Mix

A fresh mix of code snippets and tutorials

Display performance stats in WordPress

Here is how to display the page-generation time based on PHP and MySQL.

Override inline CSS styles

Quick tip for overriding inline CSS styles from within your stylesheet.

Stop form spam with a hidden field

Sick of teh spamz? Here’s an easy way to block a lot of automated spam from your contact form.

Anatomy of a URL

Sweet little infographic explaining the different parts of a URL (Uniform Resource Locator).

Display PHP + server info

Quick snippet today meant as a copy/paste template for displaying your PHP and server information in the blink of an eye.

Random colors with JavaScript

Here is an old script that’s just too precious to throw away, so here it is for the sake of reference and utter amusement.

CSS cross-browser whitespace rules

If you’ve ever tried to make whitespace behave across all browsers, you’ll appreciate today’s snippet.

CSS to debug CSS

Here is a minimal set of CSS styles useful for debugging your CSS codes.

CSS3 & HTML5 Cheatsheets

Two excellent cheatsheets for anyone working with CSS3 and HTML5.

Two interesting WordPress infographics

Here are a couple of interesting infographics for WordPress. Interesting to get a larger view of the WP universe :)

Content negotiation for WordPress

Quick PHP script for automatically selecting the best content type based on what the browser accepts. Works as-is for WordPress, or is easily modified to work with any PHP page.

Spamless email links with PHP and jQuery

Couple of quick snippets for you today.. here’s how to display spamless email links on your web pages using either PHP or jQuery.