-
-
Save gorsuch/1105280 to your computer and use it in GitHub Desktop.
Revisions
-
gorsuch revised this gist
Jul 25, 2011 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ (session/flash-put! "User added!") (session/flash-get) ;; => "User added!" ;; (session/flash-get) ;; => nil -
ibdknox revised this gist
Jul 25, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,4 +3,4 @@ (deftest cookies-get (with-noir (is (nil? (cookies/get :noir))) (is (= "noir" (cookies/get :noir "noir"))))) -
ibdknox revised this gist
Jul 25, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -8,4 +8,4 @@ ;; => "anon" ;; you can also pass a map that has all the cookie's attributes (cookies/put! :tracker {:value 29649 :path "/" :expires 1}) -
ibdknox revised this gist
Jul 25, 2011 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ (use 'noir.util.test) (deftest cookies-get (with-noir (is (nil? (cookies/get :noir))) (is (= "noir" (cookies/get :noir "noir"))))) -
ibdknox revised this gist
Jul 25, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -8,4 +8,4 @@ ;; => "anon" ;; you can also pass a map that has all the cookie's attributes (cookies/put! :tracker {:value 29649 :path "/" :expires 1}) -
ibdknox revised this gist
Jul 25, 2011 . 2 changed files with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,4 +3,4 @@ ;; => "User added!" ;; (session/get-flash) ;; => nil 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 charactersOriginal file line number Diff line number Diff line change @@ -13,4 +13,4 @@ (session/put! :username "chris") (session/put! :user-id 2) (session/clear!) -
ibdknox revised this gist
Jul 25, 2011 . 1 changed file with 11 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ (require '[noir.cookies :as cookies]) (cookies/put! :user-id 2) (cookies/get :user-id) ;; => 2 (cookies/get :username "anon") ;; => "anon" ;; you can also pass a map that has all the cookie's attributes (cookies/put! :tracker {:value 29649 :path "/" :expires 1}) -
ibdknox revised this gist
Jul 25, 2011 . 2 changed files with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,4 +3,4 @@ ;; => "User added!" ;; (session/get-flash) ;; => nil 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 charactersOriginal file line number Diff line number Diff line change @@ -13,4 +13,4 @@ (session/put! :username "chris") (session/put! :user-id 2) (session/clear!) -
ibdknox revised this gist
Jul 25, 2011 . 2 changed files with 22 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ (session/flash-put! "User added!") (session/get-flash) ;; => "User added!" ;; (session/get-flash) ;; => nil 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 charactersOriginal file line number Diff line number Diff line change @@ -1 +1,16 @@ (require '[noir.session :as session]) (session/put! :username "chris") (session/get :username) ;; => "chris" (session/remove! :username) (session/get :username) ;; => nil (session/get :username "anon") ;; => "anon" (session/put! :username "chris") (session/put! :user-id 2) (session/clear!) -
ibdknox created this gist
Jul 25, 2011 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ (require '[noir.session :as session])