This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// add now so ad can begin rendering | |
marimo.add_widget({ | |
widget_prototype:'writecapture_widget', | |
id: "some_ad", | |
html: '<script src="/my/ad/server.js"></script>', | |
}); | |
</script> | |
<!-- ... --> | |
<div id="some_ad"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% marimo request_widget medley_comments 12 434 page=4 %} | |
<!-- VVVVVVVVVVVVVVVV renders VVVVVVVVVVVVVVVVVVVV --> | |
<div id="some_randomly_generated_id"></div> | |
<script> | |
marimo.add_widget({ | |
widget_prototype:'request_widget', | |
widget_handler:'medley_comments', | |
id:'some_randomly_generated_id', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% writecapture %} | |
<script language="Javascript" type="text/javascript"> | |
document.write('<scr'+'ipt SRC="/some/scary/ad.js"ID="oh_hai"></scr'+'ipt>'); | |
</script> | |
{% endwritecapture %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% writecapture_delay %} | |
<!-- VVVVVV renders VVVVV --> | |
<!-- above add_widgets call in head: --> | |
writecapture.widgetlib.writecapture_widget.render_events.concat(['some_random_string']); | |
<!-- at the point of the tag: --> | |
<script>marimo.emit('some_random_string');</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// IN CASE OF IPAD AND/OR IE EMERGENCIES! | |
// UNCOMMENT ME | |
cmg.query(function() { | |
if (!window.console) { | |
window.console = { | |
log: function(x) { alert(x); } | |
}; | |
} | |
var repl = document.createElement('input'); | |
repl.type = 'text'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nate (lost alex) | |
alex (win greg) (win nate) | |
justin (lost greg) (lost james) | |
veatch | |
croddy | |
james (won justin) | |
greg (lost alex) (win justin) | |
burns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn list-to-map | |
"Given a list and a function that computes a key for a given list | |
item, return a map of key -> list item" | |
[key-fn lst] | |
(into {} (set (map (fn [item] [(key-fn item) item]) lst)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defmacro roll [rolls _ sides & body] | |
`(+ (if (nil? ~body) 0 ~body) (reduce + (repeatedly ~rolls #(+ 1 (rand-int ~sides)))))) | |
(roll 1 d 4) ; dagger | |
(roll 1 d 20 + 6) ; initiative | |
(roll 4 d 4 + 4) ; 7th level magic missle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; personal -- Personal config on top of Prelude | |
;;; Commentary: | |
;; Wherein I customize Prelude's defaults and add things of my own choosing. | |
;;; Code: | |
(setq prelude-guru nil) | |
(evil-mode) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7Qcos5+YfdjSpjd0yitfMToo6N/XRvSVFxFxqSXw2knWhlDfBUGzx2WUg/qd25s5BxRyUGbr4+PuH9W9rAu7cC+HKL3RzV+inBNUOSjaz2lCFAmz4C0ypP6dcBNk63r6g2Yhg1R4tFSUJzROFQRPrJuRv58qXbvEkwwxcc+Awmu8T3FbV1e+HSw0D1ZcbrUJP9t4p2uMwIPlaYji/6JuwrcHJLNHojclV7AA0QSewAX3Z742OmU35HtnqyYFPDSOWRDqisnj0JOT8Ltnv9jzKasbXWfhNQ2lPL7UFCuM3Ceq4p6uHQWJ9hxvlyY7+b7Du+xPzmL7Lt7/zvmTOQInN nathaniel@borges |