Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>jQuery simpleLogin plugin</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"></script>
<script src="scripts/main.js" type="text/javascript"></script>
<script type="text/javascript">
/*<![CDATA[*/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Testcase</title>
<link rel="stylesheet" type="text/css" href="styles/main.css">
<style type="text/css">
* {
margin: 0;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>CSS Data Structures (proof of concept)</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
//------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Cork - virtual pinboard</title>
<link rel="stylesheet" type="text/css" href="styles/main.css">
<link rel="stylesheet" type="text/css" href="styles/jquery.ui.css">
</head>
/***
<<mURL "http://google.com" "http://tiddlywiki.com" "http://tiddlywiki.org">>
***/
//{{{
(function($) {
config.macros.mURL = {
handler: function(place, macroName, params, wikifier, paramString, tiddler) {
var container = $('<div class="mURL" />').appendTo(place);
$.each(params, function(i, item) {
import foo
class Bar(object):
def __init__(self):
print "in bar.Bar.init"
def run(self, msg):
print "in bar.Bar.exec", msg
Nevow & Stan tutorial (EuroPython 2009)
Index: py/test/plugin/pytest_terminal.py
===================================================================
--- py/test/plugin/pytest_terminal.py (revision 66152)
+++ py/test/plugin/pytest_terminal.py (working copy)
@@ -284,6 +284,11 @@
except AttributeError:
pass
reportinfo = item.config.hook.pytest_report_iteminfo(item=item)
+ # add docstring to message
+ docstring = item.obj.__doc__ # TODO: shorten
# cf. http://tiddlyweb.peermore.com/wiki/recipes/docs/tiddlers/Serializing%20and%20Deserializing
from tiddlyweb.model.tiddler import Tiddler
from tiddlyweb.serializer import Serializer
def internalize(serialization, title, format):
serializer = Serializer(format)
serializer.object = Tiddler(title)
return serializer.from_string(serialization)
@FND
FND / homepage.py
Created July 17, 2009 11:53 — forked from cdent/homepage.py
from jinja2 import Environment, FileSystemLoader
from tiddlywebplugins import replace_handler
def init(config):
replace_handler(config["selector"], "/", dict(GET=homepage))
def homepage(environ, start_response):