using regular expressions

How to Tidy Your WordPress Menu html - SitePoint » PHP

Planet PHP  Tue, 01/25/2011 - 08:00

I love WordPress. I also love clean semantic html. Unfortunately, several of the standard WordPress theme functions return code that is a little untidy.

For me, the primary culprits are wp_list_pages() and the newer wp_nav_menu(); both return an unordered list of page links typically used for page menus and sitemaps, e.g.,


 

Matching Newlines in Vim

Linux Today  Wed, 10/14/2009 - 10:33

Tip of the Trade: "In a recent article I wrote about using regular expressions in editors, I mentioned the fact that by default, Emacs will match newlines when using a complemented character set, and vim won't.

A helpful reader, Tim Chase, contacted me to share a way around this."


 

Coulda: A Cucumber-like DSL for BDD

Ruby Inside  Mon, 09/14/2009 - 11:30

cucumberEvan Light has recently pushed his Coulda project to Github - it's a test framework based on Test::Unit, inspired by Cucumber, Shoulda and Thor.


 

Processing.js

Lambda the Ultimate - Programming Languages Weblog  Sat, 05/17/2008 - 19:13

John Resig (of jQuery fame) has ported the Processing visualization language to JavaScript.

The examples are remarkable, check them out (but check the browser issues John discusses).

John has a little confession:

The first portion of the project was writing a parser to dynamically convert code written in the Processing language, to JavaScript.