Skip to content

Instantly share code, notes, and snippets.

"""
quick plugin for dynamic recipe.
"""
from tiddlywebplugins.utils import replace_handler
from tiddlywebp.web.handler.recipe import get_tiddlers
def init(config):
replace_handler(config['selector'], '/', dict(GET=front))
from random import random
from math import sqrt
import sys
WORDS = 'web2'
LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
INDEX = {}
FOUND = []
@cdent
cdent / link.py
Created December 18, 2009 21:38
@cdent
cdent / webmail.sh
Created December 17, 2009 21:05 — forked from FND/webmail.sh
#!/bin/sh
# replace with all the various variables and what not
cmd="wget -q -O - http://tiddlyweb.com |uuencode /dev/stdout|\
/usr/bin/mailx -s 'hello' fndo@gmx.net"
ssh -p 8022 heavy.peermore.com $cmd
@cdent
cdent / .gitignore
Created December 14, 2009 12:51 — forked from FND/.gitignore
*.pyc
@cdent
cdent / simplewiki
Created December 3, 2009 18:00 — forked from FND/simplewiki
#!/usr/bin/env python
"""
simplewiki instantiation
"""
import sys
from tiddlyweb.config import config
"""
Say Hi with a template.
"""
from tiddlywebplugins.templates import get_template
def hello(environ, start_response):
username = environ['tiddlyweb.usersign']['name']
template = get_template(environ, 'hello.html')
recursive-include tiddlywebplugins/templates *
include README Makefile
@cdent
cdent / .gitignore
Created November 11, 2009 15:07 — forked from FND/.gitignore
*.pyc
from time import time
starts = [
1248637121,
1248818005,
1248819043,
1248819661,
1248820029,
1248862668,
1248976328,