Hi,
I tried to use org babel to document my learning of clojure. Trying the
following codes in org babel.
#+begin_src clojure :results pp
(require '[schema.core :as s])
(s/defrecord MyDomainModel
[date :- Long
])
(s/validate MyDomainModel (map-> MyDomainModel{:date 123}))
#+end_s
I am new to clojure.
My question how to handle version if we expose data directly as api, any
schema change will break the api which may impact third party users.
On Friday, 17 October 2014 15:23:10 UTC+11, Armando Blancas wrote:
>
> Sure, that's the theory behind encapsulation, but I'm not conv
;seed" ["run" "-m"
> "my.seed.ns/load-fixtures"]}`. This allows the above command to be run
> using `lein seed`, which is easier to remember.
>
>
> On Sat, Jul 26, 2014 at 8:50 AM, Rui Yang
> > wrote:
>
>> Hi all,
>>
>> Usi
Hi all,
Using Leiningen, wonder what is the best way of seeding my database.
I used ragtime to do the migration. I could drop the database and recreate
it. After creating database, I would like to invoke some task to seed my
database.
One approach could
be
http://dustingetz.tumblr.com/post/2
d the code appear in ac7fb4dd79ebfa07e3357f012206186bf3923c08 which is
the one after the 8.2.5g tag
Sorry if missed sth.
I will try to install org from master and have a try.
Thanks,
Rui
On Thursday, 23 January 2014 22:36:52 UTC+11, Bastien Guerry wrote:
>
> Hi Rui,
>
> Rui Yan
Hi,
I tried to setup cider to use within org mode. I managed to evaluate single
clojure statement but not multiple.
For example:
#+name: basic-clojure
#+begin_src clojure
(defn greeting
"Returns a greeting of the form 'Hello, username.'"
[username]
(str "Hello, " username))
#+end_src
will be ok.
Trying to use org mode with clojure. I'd like to use cider as the REPL
server.
Things is fine if I have only one statement in org source block. If I have
more than one, then I got exception.
for example
#+name: basic-clojure
#+begin_src clojure
(defn greeting
"Returns a greeting of the form 'He