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
<Raynes> amalloy: Also, my pastebin currently has 4clojure's favicon. :p Because the browser had it cached from my testing a few days ago. | |
[22:26] | |
<amalloy> Raynes: just rm -rf ~, that should take care of the cached favicon | |
[22:27] | |
<Raynes> omg rly im tots gunna tr that | |
<Raynes> amalloy: omgwtf u delted my home [22:44] | |
<amalloy> Raynes: i should totally have done like a sudo mv ~raynes /tmp/lol-stole-it |
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
refheap.models.paste> (binding [session/*noir-session* (atom {})] (paste {:description "A paste." :language "Nimrod" :contents "proc notAComment2() = return"})) | |
{:paste-id 5, :user "anonymous", :description "A paste.", :language "Nimrod", :contents "", :_id #<ObjectId 4ef666d0d6c4de4c8a84efec>} |
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
(require '[noir.session :as session]) | |
(use 'noir.core) | |
(use 'noir.server) | |
(defpage "/put" [] (session/flash-put! :foo "1") (pr-str @session/*noir-flash*)) | |
(defpage "/take" [] (prn (session/flash-get :foo)) (pr-str @session/*noir-flash*)) | |
(def s (start 8080)) |
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
[foreclojure.utils :only [from-mongo get-user get-solved login-link | |
flash-msg flash-error row-class approver? | |
can-submit? send-email image-builder if-user | |
with-user as-int maybe-update escape-html]] |
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
(ns crisis.core) | |
(defn crisis [x] | |
(println x)) | |
(defn -main [& args] | |
(crisis "Hello, World!")) | |
(set! *main-cli-fn* -main) |
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
Exception in thread "main" clojure.lang.ArityException: Wrong number of args (0) passed to: core$fnil$fn | |
at clojure.lang.AFn.throwArity(AFn.java:437) | |
at clojure.lang.RestFn.invoke(RestFn.java:399) | |
at clojure.core$reduce.invoke(core.clj:5992) | |
at foreclojure.mongo$reconcile_solved_count.invoke(mongo.clj:59) | |
at foreclojure.mongo$prepare_mongo.invoke(mongo.clj:68) | |
at user$eval2508.invoke(NO_SOURCE_FILE:1) | |
at clojure.lang.Compiler.eval(Compiler.java:6465) | |
at clojure.lang.Compiler.eval(Compiler.java:6431) | |
at clojure.core$eval.invoke(core.clj:2795) |
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
foreclojure.feeds> (create-feed "foo" "bar" "baz" "quux" [:x "y"]) | |
"<?xml version=\"1.0\" encoding=\"UTF-8\"?><rss version=\"2.0\" xmlns:atom=\"http://www.w3.org/2005/Atom\"><channel><atom:link href=\"quux\" rel=\"self\" type=\"application/rss+xml\"/><title>foo</title><link>bar</link><description><![CDATA[baz]></description><x>y</x></channel></rss>" |
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
own buffer. |
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
all |
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
fs.core> (parents "/alans/father/is/named/kirby") | |
(#<File /alans/father/is/named> #<File /alans/father/is> #<File /alans/father> #<File /alans> #<File />) |