Skip to content

Instantly share code, notes, and snippets.

View jollm's full-sized avatar

Jo Gay jollm

  • Seattle, WA
View GitHub Profile

php

Wizard and Page classes main Controller retrieves status, creates wizard and adds pages

Wizard

display a page, provide equivalent to back, next/finish (here finish will simply redirect to the CCS main page)

Page

isComplete (do we have info to proceed)

(html
(let [id "filter_name"]
[:tr
[:td
[:label {:for id} "Name"]]
[:td
[:div {:dojoType "dijit.form.TextBox" :trim "true" :id id}]]]))
;; produces "<tr><td><label for=\"filter_name\">Name</label></td><td><div dojoType=\"dijit.form.TextBox\" id=\"filter_name\" trim=\"true\"></div></td></tr>"
var content =
h('div')
.adopt(h('table'))
.adopt(h('tbody'))
.adopt(filterList).end().end().end() // div
.adopt(h('table'))
.adopt(h('tbody'))
.adopt(sortableList).end().end().end()[0]; // div dom node
(defun center-as-central-window ()
"three windows with a large center window"
(interactive)
(delete-other-windows)
(split-window-horizontally)(split-window-horizontally)
(other-window 2)
(split-window-horizontally)
(delete-windows-for)
(other-window 2))
function greader_share(doc) {
if(doc.body && !doc.xmlVersion) {
var y = doc.createElement('script');
y.textContent = "var GR________bookmarklet_domain = 'http://www.google.com';";
var z = doc.createElement('script');
z.src = 'http://www.google.com/reader/ui/link-bookmarklet.js';
doc.body.appendChild(y);
doc.body.appendChild(z);
}
}