Below you will find a small selection of code examples from some of my personal projects. There are copious lines of code that I can’t show you, because they are proprietary, confidential or sitting behind firewalls. What I can’t show is mostly SAS code written for my clients. The code examples below are mostly PHP, with a little XML stuff mixed in. For examples of my Java code, please contact me directly.

All of the code here is open-source, free to download, modify and use as you wish. No guarantees or warranties, implied or expressed, come with the code. Some of the code is licensed explicity using some form of the Creative Commons licenses. Absent a specifically articulated license, if you choose to use the code, please try to credit me where possible (a simple note in the code comments will suffice). A link to my site would be kind of nice too! Enjoy…

My Resume Application (written August, 2006)
This is a set of code I wrote to generate my resume in various formats from a single XML document. I use object-oriented PHP code to generate the HTML and Text versions of the code, and XSL/XSL-FO and the Apache FOP project to generate the PDF and RTF versions. The XML document lives here, and conforms to the schema design linked below. Read all about this project here.

  • MauryBrookeResume.php — This is the code that parses the XML document, loads the objects and renders the HTML page.
  • resumeClasses.php — This file contains all of the objects and methods for accessing the methods used in other programs.
  • MauryBrookeResume.xsd — The XML Schema that describes the model for a technical resume.
  • detailedResume.xsl — The XSL stylesheet that generates the FO document for formatting the output in RTF, PDF or whatever.
  • MauryBrookeResume.fo — The FO document marked up to be rendered.

You can view the output of all of these programs here.

RecentPlaying Blog Tool (written May, 2006)
One of my interests is music. I love listening to it, discovering new music, and exploring and developing tools to make use of all the great music services out there. I wrote this application to take metadata from Last.FM to show what music I’m currently listening to. Read all about the project here.

  • recentPlaying.php — This is the PHP code that generates the recently playing list.
  • recentListening.tar.gz — The code is tarred and compressed here, with a README file explaining how to use the code on your blog or website. It’s been tested in WordPress