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
;; clojure 1.8.0 - lein repl | |
user=> (defn hello "hello world") | |
IllegalArgumentException Parameter declaration missing clojure.core/assert-valid-fdecl (core.clj:7181) | |
;; clojure 1.9.0-beta2 - lein repl | |
user=> (defn hello "hello world") |
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 services.email | |
(:require [clojure.tools.logging :as log] | |
[clojure.string :as string] | |
[clojure.java.io :as io] | |
[schema.core :as s] | |
[camel-snake-kebab.core :as csk] | |
[camel-snake-kebab.extras :as cske] | |
[amazonica.core :as aws] | |
[amazonica.aws.simpleemail :as ses] | |
[selmer.parser :as selmer] |
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 localstorage) | |
(defn set-item! | |
"Set `key' in browser's localStorage to `val`." | |
[key val] | |
(.setItem (.-localStorage js/window) key val)) | |
(defn get-item | |
"Returns value of `key' from browser's localStorage." | |
[key] |
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
(reduce | |
(fn [{:keys [odd even]} datum] | |
(if (odd? datum) | |
{:odd (conj odd datum) | |
:even even} | |
{:odd odd | |
:even (conj even datum)})) | |
{:odd [] | |
:even []} | |
(range 20)) |
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
<html> | |
<head> | |
<script src="out/goog/base.js" type="text/javascript"></script> | |
<script src="hello_world.js" type="text/javascript"></script> | |
<script type="text/javascript">goog.require("hello_world.core");</script> | |
</head> | |
<body> | |
</body> | |
<script type="text/javascript">hello_world.core.run()</script> | |
</html> |