Skip to content

Instantly share code, notes, and snippets.

@imnaseer
imnaseer / unknowable.lisp
Created December 27, 2011 02:28
Chaitin's Unknowable code
;;
;; Liberal transcription of (some of) the lisp code found in Chaitin's "The Unknowable"
;;
;; Immad Naseer -- Dec 26th
;;
;;
;; A lisp expression which evaluates to itself.
;;
Jaml.register('details_flyover', function(data) {
div({ id: "flyover_" + data.dataId, cls:"overlay", style:"display:none;" },
div({ style:"border: 0pt none; margin: 0pt;" },
div({ cls:"overlayContentWrapper storyFlyover flyover",
style:"width: 475px; max-height: 600px" },
div({ cls:"storyTitle" },
h(data.item.subject)),
Jaml.register('load_search', function() {
table({ cls: 'searchField' },
tbody(
tr(
td(
a({ onclick: "$(\'searchString\').focus(); return false;",
href:"#" },
img({ src:"/images/search_left.png", alt:"Search", title:"" }))),