View dump-1481063150144.cljs
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
cljs.user=> (def foo (atom 2)) | |
#'cljs.user/foo |
View dump-1481063176343.cljs
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
cljs.user=> (def foo (atom 2)) | |
#'cljs.user/foo |
View dump-1481063184310.cljs
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
cljs.user=> (def foo (atom 2)) | |
#'cljs.user/foo |
View dump-1481063211048.cljs
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
cljs.user=> (def foo (atom 2)) | |
#'cljs.user/foo |
View dump-1481063220600.cljs
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
cljs.user=> (def foo (atom 2)) | |
#'cljs.user/foo |
View dump-1481063240121.cljs
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
cljs.user=> (def foo (atom 2)) | |
#'cljs.user/foo | |
cljs.user=> 1 | |
1 |
View main.clj
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 adamdavislee.mpd.main | |
(:require [neko.activity | |
:refer [defactivity set-content-view!]] | |
[neko.debug :refer [*a]] | |
[neko.notify | |
:refer [toast fire notification]] | |
[neko.resource :as res] | |
[neko.context | |
:refer [get-service]] | |
[neko.threading :refer [on-ui]] |
View index.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
<canvas></canvas> |
View roman-numeral.clj
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
(with-test | |
(defn roman-numeral | |
[input] | |
(loop [input input, acc 0, ] | |
(if (empty? input) | |
acc | |
(let [convert {"I" 1, "V" 5, "X" 10, "L" 50, "C" 100, "D" 500, "M" 1000, } | |
curr-num (convert (subs input 0 1)) | |
op (if (and (not= 1 (count input)) | |
(< curr-num |
View number-theory.clj
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 adamdavislee.math.number-theory | |
"This port closely mimics the naming conventions and coding style of the racket source code. | |
However it does not: | |
Define inline versions of mod+, mod*, etcetera. | |
TODO: | |
Add pre/post conditions and assertions with type checking etc. | |
Improve docstrings. | |
Finish marking internal functions as private. | |
Use internal memoization for some of the functions which racket uses manual bit manipulation for." | |
(:require [clojure.test |
OlderNewer