Skip to content

Instantly share code, notes, and snippets.

Jon Robson jdlrobson

Block or report user

Report or block jdlrobson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View badgoodmselect
from tiddlyweb import control
from tiddlywebplugins.utils import get_store
from import Store, NoBagError,NoTiddlerError
from tiddlyweb.model.bag import Bag
from tiddlyweb.model.recipe import Recipe
from tiddlyweb.model.tiddler import Tiddler
def mytest(environ, start_response):
start_response('200 OK', [
('Content-Type', 'text/html; charset=utf-8')
View gist:389638
tags: systemConfig
|Description|Publish a tiddler by moving or copying it from one bag to another|
Add {{{publishtiddler}}} to your ToolbarCommands tiddler.
View gist:469299
store.addNotification("StyleSheetTiddlySpace", refreshStyles);
var stylesheetTS = store.namedNotifications[store.namedNotifications.length - 1];
var newNotifications = [stylesheetTS].concat(store.namedNotifications.slice(0,store.namedNotifications.length-1));
store.namedNotifications = newNotifications;
View gist:526865
beforeSend: function() {
console.log("in global ajax beforeSend");
console.log("Request one");
var ajax = ajaxReq({
url: "/",
beforeSend: function() {
jdlrobson / simulate_delete
Created Jun 7, 2011
Takes a textarea/input and deletes the text bit by bit
View simulate_delete
function clear(el) {
var interval = 300;
var charactersToRemove = 1;
var id = setInterval(function(ev) {
var x = $(el).val();
if(!x) {
} else {
var pos = x.length - charactersToRemove;
x = x.substr(0, pos);
jdlrobson / packager
Created Jun 10, 2011
This python script collects plugins specified by name in tiddlyspace spaces, minifies them and puts them to the DESTINATION space. A user and pass are provided for authorisation to save to DESTINATION
View packager
import httplib2, urllib, datetime, os
from datetime import datetime as d
import simplejson
USER = "<user>"
PASS = "<pass>"
DESTINATION = "package-i"
PLUGINS = [{ "title": "TiddlyPoller", "space": "poller" }, { "title": "StaticMapPlugin", "space": "staticmaps"}, { "title": "ExtraFiltersPlugin", "space": "filters" },
{ "title": "EditTemplateFieldsPlugin", "space": "first-class-fields" }, { "title": "MySearchPlugin", "space": "mysearch" }, { "title": "ReverseLookupFix", "space": "mysearch" },
jdlrobson / fetchTiddlerAjax
Created Jun 23, 2011
overriding fetchTiddler
View fetchTiddlerAjax
function TiddlyWiki()
var tiddlers = {}; // Hashmap by name of tiddlers
this.tiddlersUpdated = false;
this.namedNotifications = []; // Array of {name:,notify:} of notification functions
this.notificationLevel = 0;
this.slices = {}; // map tiddlerName->(map sliceName->sliceValue). Lazy.
this.clear = function() {
tiddlers = {};
jdlrobson / reflector weirdness
Created Jun 28, 2011
reflector weirdness - a tiddlywiki as uploaded by the reflector
View reflector weirdness
<HEAD><TITLE>My TiddlyWiki - a reusable non-linear personal web notebook</TITLE>
<SCRIPT id=versionArea type=text/javascript>
var version = {title: "TiddlyWiki", major: 2, minor: 6, revision: 2, date: new Date("Jan 6, 2011"), extensions: {}};
<META http-equiv=Content-Type content=text/html;charset=utf-8>
<META content="&#10;TiddlyWiki created by Jeremy Ruston, (jeremy [at] osmosoft [dot] com)&#10;&#10;Copyright (c) Jeremy Ruston 2004-2007&#10;Copyright (c) UnaMesa Association 2007-2011&#10;&#10;Redistribution and use in source and binary forms, with or without modification,&#10;are permitted provided that the following conditions are met:&#10;&#10;Redistributions of source code must retain the above copyright notice, this&#10;list of conditions and the following disclaimer.&#10;&#10;Redistributions in binary form must reproduce the above copyright notice, this&#10;list of conditions and the following disclaimer in the documentation and/or other&#10;materials provided with the dist
jdlrobson / resizable-textarea.js
Created Jul 14, 2011
make a textarea resize as you type into it!
View resizable-textarea.js
// BSD License - written by jon robson (
// see autoresize
function autoResize(el) {
var resize = function(ev) {
el =;
var div = $('<div />').addClass($("class")).hide().
css({ "word-wrap": "break-word" }).appendTo($(el).parent())[0];
var value = $(el).val() || "";
var lines = value.split("\n");
for(var i = 0; i < lines.length; i++) {
== Welcome to Rails
Rails is a web-application framework that includes everything needed to create
database-backed web applications according to the Model-View-Control pattern.
This pattern splits the view (also called the presentation) into "dumb"
templates that are primarily responsible for inserting pre-built data in between
HTML tags. The model contains the "smart" domain objects (such as Account,
Product, Person, Post) that holds all the business logic and knows how to
persist themselves to a database. The controller handles the incoming requests
You can’t perform that action at this time.