Skip to content

Instantly share code, notes, and snippets.

View psd's full-sized avatar

Paul Downey psd

View GitHub Profile
psd / jslint.conf
Created October 7, 2009 17:37 — forked from sneeu/jslint.conf
# Configuration File for JavaScript Lint 0.2.6
# Developed by Matthias Miller (
# This configuration file can be used to lint a collection of scripts, or to enable
# or disable warnings for scripts that are linted via the command line.
#### Feel free to experiment with enabling/disabling individual warnings to
psd / error.txt
Created December 7, 2009 14:07 — forked from FND/error.txt
future import issues
works fine on Ubuntu, but on Mac OS X:
Traceback (most recent call last):
File "/usr/local/bin/twanager", line 14, in <module>
File "/Library/Python/2.5/site-packages/tiddlyweb/", line 309, in handle
File "/Library/Python/2.5/site-packages/tiddlyweb/", line 76, in server
File "/Library/Python/2.5/site-packages/tiddlyweb/web/", line 53, in start_cherrypy
psd / README
Created December 7, 2009 15:08
XML TiddlyWeb serializer
simple tiddlyweb.xml twinstance
$twanager server
ERROR: ImportError: No module named marshal
addrole: Add a role to an existing user. <username> [role] [role] [role]
adduser: Add or update a user to the database: <username> <password> [[role] [role] ...]
bag: Create or update a bag with the json text on stdin: <bag>
imwiki: Import tiddlers from a Tiddlywiki document into a bag: <bag> <filename>
psd / controls.html
Created December 16, 2009 11:07
Slideshow Controls
<title>Slideshow Controls</title>
<style type="text/css">
body {
background-color: #FFF;
.tv {
psd / README
Created January 4, 2010 14:47
OpenOffice Document Conversion
Experiments in running a headless OpenOffice as a document convertor for TiddlyDocs, etc.
Running OpenOffice Headless:
$ cd /Applications/ #Mac OSX
$ cd /usr/lib/ #CentOS
$ ./soffice.bin -headless -invisible -nofirststartwizard -accept="socket,port=8100;urp;"
init script:
see for init.d scripts
psd / README
Created January 9, 2010 15:02
Parsing CSS in JavaScript
Parsing CSS in JavaScript
CSS3 Selectors in LEXX/YAXX:
Prior Art:
Python CSS Parser:
psd / balloon.html
Created February 6, 2010 13:38
Pure CSS speech balloon
<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 / Makefile
Created March 19, 2010 11:35
Simple geo tests using Geekery Is The Social Capital Of Britain:
.PHONY: test src clean
test: $(SRCS) test/ test/
py.test -v
@-find . -name "*.pyc" |xargs rm -f
psd /
Created March 24, 2010 09:37
set -xe
for bag in team4_public tim
curl $server/bags/$bag/tiddlers.txt | while read tiddler
curl -s "$server/bags/$bag/tiddlers/${tiddler}.txt" > "$bag/${tiddler}.tid"
psd / README
Created March 31, 2010 19:22
TiddlySpace Wireframes
First draft of TiddlySpace wireframes in Omnigraffle, uses the stencils: