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
(testing "Access should be granted on valid credentials." | |
(is (= (app (mock/header (mock/request :get "/api/echo" {:m "hi"}) | |
"authorization" "Basic Zm9vOmJhcg==")) | |
{:status 200 :body "hi"})))) |
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
(comment | |
I'm trying to build a very simple clojurescript app using re-frame (& reagent, secretary), | |
and I am getting the following error in the console, that I can't seem to debug: | |
Error: No protocol method IDeref.-deref defined for type cljs.core/PersistentArrayMap: {:name "Black Temple", :snippet "25-man raid"} | |
) | |
(ns raid-commander.core | |
(:require [reagent.core :as reagent :refer [atom]] | |
[reagent.session :as session] |
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
;; Hourly from yesterday morning up to current hour | |
http://www.eco-public.com/api/h7q239dd/data/periode/101017181/?begin=20150509&end=20150510&step=3 | |
;; Totals from yesterday and (so far?) today | |
http://www.eco-public.com/api/h7q239dd/data/periode/101017181/?begin=20150509&end=20150510&step=4 | |
;; Hourly for yesterday | |
http://www.eco-public.com/api/h7q239dd/data/periode/101017181/?begin=20150509&end=20150509&step=3 | |
;; Hourly for today |
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
project (PROJECT_NAME) | |
find_package (SDL REQUIRED) | |
set (SRC file1.cpp file2.cpp) | |
add_executable (EXECUTABLE_NAME ${SRC}) | |
target_link_libraries(EXECUTABLE_NAME ${SDL_LIBRARY}) |
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
tasks_controller#index | |
had: @tasks = Task.all | |
should be: @tasks = current_user.tasks | |
so when I was displaying @tasks in the view, it had the entire table >.< |
NewerOlder