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
http://stackoverflow.com/questions/487258/plain-english-explanation-of-big-o | |
http://stackoverflow.com/questions/2307283/what-does-olog-n-mean-exactly/2307314#2307314 | |
http://compgeom.cs.uiuc.edu/~jeffe/teaching/algorithms/ |
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 https-url [request-url] | |
(str (str (str (str "https://" (:server-name request-url) ":") "443")) (:uri request-url))) | |
(defn require-https | |
[handler] | |
(fn [request] | |
(if (= (:scheme request) :http) | |
(ring.util.response/redirect (https-url request)) | |
(handler request)))) |
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
(alter-var-root | |
#'clojure.tools.logging/*logger-factory* | |
(constantly (clojure.tools.logging.impl/jul-factory))) |
NewerOlder