Skip to content

Instantly share code, notes, and snippets.

@clsn
clsn / gist:977701
Created May 17, 2011 23:57
Trying to filter!
###### XXX.pm:
#!/usr/bin/perl
package XXX;
use Filter::Simple;
FILTER {
s/MXM/#/g;
}
1;
@clsn
clsn / gist:901470
Created April 4, 2011 10:59
voylogo-s.svg first cut
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
use v6;
grammar Simpl {
token xxx { 'x' }
token c { 'c' }
token end { '!' }
token xc { <xxx>*<c> }
token xend { <xxx>*<end> }
}
#!/bin/sh
if [ $# -gt 0 ]
then DIR="$1"
else DIR="."
fi
if [ -d "$DIR/.hg" ]
then echo hg status "$DIR"
hg status "$DIR"
elif [ -d "$DIR/.svn" ]