Skip to content

Instantly share code, notes, and snippets.

View psd's full-sized avatar

Paul Downey psd

View GitHub Profile
@psd
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 (http://www.JavaScriptLint.com)
#
# 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.
#
#### NOTE TO TEXTMATE BUNDLE USERS:
#### Feel free to experiment with enabling/disabling individual warnings to
@psd
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>
handle(args)
File "/Library/Python/2.5/site-packages/tiddlyweb/manage.py", line 309, in handle
COMMANDS[candidate_command](args)
File "/Library/Python/2.5/site-packages/tiddlyweb/manage.py", line 76, in server
serve.start_cherrypy()
File "/Library/Python/2.5/site-packages/tiddlyweb/web/serve.py", line 53, in start_cherrypy
@psd
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
psd / controls.html
Created December 16, 2009 11:07
Slideshow Controls
<html>
<head>
<title>Slideshow Controls</title>
<style type="text/css">
body {
background-color: #FFF;
}
.tv {
@psd
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/OpenOffice.org.app/Contents/program #Mac OSX
$ cd /usr/lib/openoffice.org.app/program #CentOS
$ ./soffice.bin -headless -invisible -nofirststartwizard -accept="socket,port=8100;urp;"
init script:
see openoffice.sh xvfb.sh for init.d scripts
@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