$ ./slideshow sample
b
: previousn
: nextq
: quit
{ "name": "Bravo" } |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Test Case</title> | |
</head> | |
<body> | |
<h1>Hello World</h1> |
import asyncio | |
from random import randint | |
from mhd.server import start_server | |
EOL = b"\n"[0] # XXX: hacky | |
LIPSUM = b""" |
USER visits APP
GET https://example.org
APP links to PROVIDER login
USER follows PROVIDER link, logging in if necessary
GET https://provider.com/login
{ response_type=code, client_id, redirect_uri=https://example.org/auth }
#!/usr/bin/env bash | |
# DEBUG | |
item="foo bar lorem ipsum" | |
item="foo bar t:2009-02-26 lorem ipsum" | |
item="foo bar t:2009-02-27 lorem ipsum" | |
item="foo bar t:2009-02-28 lorem ipsum" | |
# check for threshold | |
if [[ $item = *t:* ]]; then # check for threshold marker |
/** | |
* Checks that the given expression throws an exception of the expected type, with an optional message. | |
* | |
* @example raises( function() { return foo.bar; }, "TypeError", "invalid property access raises TypeError exception" ); | |
* | |
* @param Function expression | |
* @param String expected exception type | |
* @param String message (optional) | |
*/ | |
function raises(expression, expected, message) { |
/* | |
* make Bespin use the local file system for storage | |
* | |
* requires jquery.file.save and jquery.file.load: | |
* http://trac.tiddlywiki.org/browser/Trunk/core/jquery/plugins/ | |
*/ | |
(function() { | |
// provide jQuery functionality required by file-system code |
//{{{ | |
config.macros.toggleReadOnly = { | |
label: "toggle", | |
tooltip: "toggle read-only mode", | |
handler: function(place, macroName, params, wikifier, paramString, tiddler) { | |
createTiddlyButton(place, this.label, this.tooltip, this.toggle); | |
}, | |
toggle: function() { |