This file contains hidden or 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
(ns #^{:doc "A handful of utilities for handling sessions"} | |
somnium.financier.app.control.session | |
(:refer-clojure :exclude (assoc! dissoc! get))) | |
;;;; declaring session var here for global-ish access to session | |
(def *session* {}) | |
(def *flash* {}) | |
(defn with-dynamic-session |
This file contains hidden or 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
var jury; | |
jury || (jury = {}); | |
if(!jury.destro)jury.destro = {}; | |
(function() { | |
jury.destro.foo = function(b, a) { | |
if(arguments.length !== 2)throw"required arity is 2";var h, c; | |
c = b["that-thingy"] || "bar"; | |
var d; | |
d = b["this-thingy"] || "foo"; | |
var e; |
This file contains hidden or 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
;;;; *very* quick and dirty support for javascript destructuring on | |
;;;; native javascript arrays and objects | |
(add-inline-form | |
get [[_ a b c]] | |
(str "((" a "[" b "]" ")||" c ")")) | |
(add-inline-form | |
nth [[_ a b]] | |
(str a "[" b "]")) | |
(add-inline-form |
NewerOlder