Skip to content

Instantly share code, notes, and snippets.

View Yardboy's full-sized avatar

Cayce Balara Yardboy

View GitHub Profile
@Yardboy
Yardboy / regex_help.txt
Created February 5, 2011 13:48
I need some regex help...
Solved, with some help from StackOverflow that I apparently missed the first time around
(http://stackoverflow.com/questions/2013124/regex-matching-up-to-the-first-occurrence-of-a-character):
/<simpleChoice[^>]*>/
Match "<simpleChoice" plus any and all characters that do not match ">" followed by a ">".
[^>]* is a set of "zero or more characters that do not match >"
@Yardboy
Yardboy / manifest.xml
Created January 20, 2011 22:49
HappyMapper class definition puzzler
<manifest>
<organization>
<item identifier="ITEM-6137565f-18fe-481f-b6ce-a290a354c862" isvisible="true">
<title>Math</title>
<item identifier="ITEM-5781bd41-7acd-4373-8ccd-37bd074c2461">
<title>Grade 07</title>
<item identifier="ITEM-d7035880-88a5-4501-9865-f6265ba8022c" identifierref="i-179211">
<title>qti_200535.xml</title>
</item>
<item identifier="ITEM-b13ebebd-f942-4ee8-a342-e8c3913c9063" identifierref="i-194469">
<ul>
<li>
Level 1 Item 1
<ul>
<li>
Level 1-1 Item 1
<ul>
<li>
Level 1-1-1 Item 1
</li>
#!/bin/bash
# Based on terrbear's "html2haml an entire directory" at http://terrbear.org/?p=277
# This script needs to be executable and located somewhere in your PATH
CMD=`basename $0`
if [ -z "$1" ]; then
wdir="."
else
wdir=$1