This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import random | |
from math import sqrt | |
import sys | |
WORDS = 'web2' | |
LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
INDEX = {} | |
FOUND = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pprint import pprint | |
foo = {'name': 'foo'} | |
bar = {'name': 'bar'} | |
baz = {'name': 'baz'} | |
mytopic = {'name': 'mytopic'} | |
myothertopic = {'name': 'myothertopic'} | |
can = {'name': 'can'} | |
foo['parent'] = mytopic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
simplewiki instantiation | |
""" | |
import sys | |
from tiddlyweb.config import config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
recursive-include tiddlywebplugins/templates * | |
include README Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from time import time | |
starts = [ | |
1248637121, | |
1248818005, | |
1248819043, | |
1248819661, | |
1248820029, | |
1248862668, | |
1248976328, |