WP-Mix

A fresh mix of code snippets and tutorials

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.

Cross domain posting with Ajax

Technically cross-domain posting is not allowed, but here is a workaround that may prove useful for your brainstorming sessions. Note that this technique is aimed at advanced developers.

Print this JavaScript

You know those “Print this page” links that let you print the whole page? Yeah, those. Here is how to create one of those for your web page using JavaScript and HTML.

HTML frames template

Every blue moon you need to work with frames. Here is a quick frames template to get you going.