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
No message. | |
[Thrown class java.lang.ExceptionInInitializerError] | |
Restarts: | |
0: [QUIT] Quit to the SLIME top level | |
1: [CAUSE1] Invoke debugger on cause Attempting to call unbound fn: #'clojure.core/refer [Thrown class java.lang.IllegalStateException] | |
Backtrace: | |
0: clojure.set__init.__init0(Unknown Source) | |
1: clojure.set__init.<clinit>(Unknown Source) |
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
user> (defn classloader-heirarchy | |
([] | |
(classloader-heirarchy (clojure.lang.RT/baseLoader))) | |
([tip] | |
(if tip | |
(conj (classloader-heirarchy (.getParent tip)) tip) []))) | |
#'user/classloader-heirarchy | |
user> (classloader-heirarchy) | |
[#<ExtClassLoader sun.misc.Launcher$ExtClassLoader@7ea2dfe> #<AppClassLoader sun.m\ | |
isc.Launcher$AppClassLoader@61ba34f2> #<DynamicClassLoader clojure.lang.DynamicCla\ |
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
user> (binding [*ns* nil] (ns-resolve 'clojure.core '=)) | |
#'clojure.core/= | |
user> (binding [*ns* nil] (resolve 'clojure.core/=)) | |
No message. | |
[Thrown class java.lang.NullPointerException] | |
Restarts: | |
0: [QUIT] Quit to the SLIME top level | |
Backtrace: |
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
# http://stackoverflow.com/questions/6738715/ruby-koans-182-refactor-help | |
def old_score(dice) | |
rollGreedRoll = Hash.new | |
rollRollCount = Hash.new | |
(1..6).each do |roll| | |
rollGreedRoll[roll] = roll == 1 ? GreedRoll.new(1000, 100) : | |
GreedRoll.new( 100 * roll, roll == 5 ? 50 : 0) | |
rollRollCount[roll] = dice.count { |a| a == roll } | |
end |
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
(defroutes admin-routes | |
(GET "/admin" request (admin-index request))) | |
(wrap! admin-routes :require-admin) | |
(defroutes app | |
(GET "/" request (index request)) | |
admin-routes) | |
(wrap! app :log-analytics) |
NewerOlder