Skip to content

Instantly share code, notes, and snippets.

View psd's full-sized avatar

Paul Downey psd

View GitHub Profile
@psd
psd / README
Created January 9, 2010 15:02
Parsing CSS in JavaScript
Parsing CSS in JavaScript
CSS3 Selectors in LEXX/YAXX:
http://www.w3.org/TR/css3-selectors/#w3cselgrammar
Prior Art:
Python CSS Parser:
@psd
psd / balloon.html
Created February 6, 2010 13:38
Pure CSS speech balloon
<html>
<head>
<style type="text/css">
.balloon {
margin: 1em auto;
font: normal 64px/0.9 Constantia,Palatino,"Palatino Linotype","Palatino LT STD","Times New Roman",serif;
width: 8em;
}
.balloon > div {
background: #222;
@psd
psd / Makefile
Created March 19, 2010 11:35
Simple geo tests using Geekery Is The Social Capital Of Britain:
.PHONY: test src clean
SRCS=\
geofilters.py\
ltgt.py
test: $(SRCS) test/__init__.py test/test_geofilters.py gitscob.py
py.test -v
clean:
@-find . -name "*.pyc" |xargs rm -f
@psd
psd / backup.sh
Created March 24, 2010 09:37
myOpenBritain
set -xe
server="http://openbritain.labs.osmosoft.com/"
for bag in team4_public tim
do
curl $server/bags/$bag/tiddlers.txt | while read tiddler
do
curl -s "$server/bags/$bag/tiddlers/${tiddler}.txt" > "$bag/${tiddler}.tid"
done
done
@psd
psd / README
Created March 31, 2010 19:22
TiddlySpace Wireframes
First draft of TiddlySpace wireframes in Omnigraffle, uses the stencils:
http://konigi.com/tools/omnigraffle-wireframe-stencils
modifier: psd
Username:
<<edit username "" "username">>
Password:
<<edit password "" "******">>
<html><button type="button">Login</button></html> //you already have a space and would like to login//
@psd
psd / cluedo.html
Created April 16, 2010 20:48
Better Cluedo notes
table {
border-collapse: collapse;
background: url(graph.png) #fff no-repeat center;
color: #000;
font-family: "Lucida Bright", "Times New Roman", serif;
font-size: 0.85em;
}
caption {
padding-bottom: 5px;
@psd
psd / .gitignore
Created May 28, 2010 14:22
confusedviz
index.html
content/
report/
.DS_Store
TiddlySaver.jar
@psd
psd / simples.xslt
Created June 17, 2010 19:55
simplify Inkscape SVG
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<xsl:output method="xml" omit-xml-declaration="yes"/>
@psd
psd / tiddler2tid.pl
Created July 9, 2010 13:39
convert .tiddler into .tid format files
#!/usr/bin/env perl
#
# convert .tiddler into .tid format files
#
use strict;
use File::Slurp;
foreach my $file (@ARGV) {