Catnip

2012-06-16 Thread Christian Guimaraes
Hi, Anybody here already used "catnip" (https://github.com/bodil/catnip) to do some web developement? I saw this video (http://vimeo.com/43808810) and this tools is quite impressive. I'm giving it a try. Cheers. Christian Guimaraes @csgui -- You received this message

Re: Clojure Sticker

2012-06-11 Thread Christian Guimaraes
I'm interested also... On Sun, Jun 10, 2012 at 2:03 AM, aboy021 wrote: > Is there anywhere that I can get a Clojure sticker? > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Not

Re: problem with .indexOf

2012-06-08 Thread Christian Guimaraes
{:v c, :id 3} {:v b, :id >> 4} {:v a, :id 5}) >> >> /k >> >> On Fri, Jun 8, 2012 at 3:31 PM, Jay Fields wrote: >> > You probably just want map-indexed... >> > >> > Sent from my iPhone >> > >> > On Jun 8, 2012, at 9:24 AM,

problem with .indexOf

2012-06-08 Thread Christian Guimaraes
Hello all, I have the code below: (def data '(a b c c b a)) (for [value data] (hash-map "id" (.indexOf data value) "value" value)) That gives me the output: ({"value" a, "id" 0} {"value" b, "id" 1} {"value" c, "id" 2} {"value" c, "id" 0} {"value" b, "id" 1} {"value" a, "id" 2}) but I need t

Re: Creating a hashmap

2012-06-05 Thread Christian Guimaraes
Thanks for the tip, Timmy. This is a very interesting Vector feature. -- christian On Tue, Jun 5, 2012 at 7:13 PM, Tim Visher wrote: > On Tue, Jun 5, 2012 at 7:59 AM, Christian Guimaraes > wrote: > > I hava a list (a b c) and want to create a hashmap using the elements > fro

Re: Creating a hashmap

2012-06-05 Thread Christian Guimaraes
t; > Thanks, > Ambrose > > > On Tue, Jun 5, 2012 at 8:02 PM, Jay Fields wrote: > >> (zipmap (range 1 4) ["a" "b" "c"]) >> >> >> On Tue, Jun 5, 2012 at 7:59 AM, Christian Guimaraes < >> cguimaraes...@gmail.com> wrote: >&g

Creating a hashmap

2012-06-05 Thread Christian Guimaraes
Hello all, I'm studying a little bit of Clojure and facing a doubt here. I hava a list (a b c) and want to create a hashmap using the elements from this list. The keys will be a sequential number, and the values will be the values from the previous list. 1. list: (a b c) 2. desired hashmap:

Re: "when" function

2012-05-21 Thread Christian Guimaraes
Hi, I think that multimethods will fit better in my case, since I have more than three ID's to handle. Thank you all for the answers. -- christian. On Mon, May 21, 2012 at 5:04 PM, Timothy Baldridge wrote: > > A multimethod might also be an appropriate way forward for you. > > +1 For multimeth

"when" function

2012-05-21 Thread Christian Guimaraes
Hi all, I'm struggling with "when" code structures and my imperative mindset. What is the better approach (or functional approach) to work with a code like the below? (defn parse-group [group-identifier line] (when (= group-identifier "ID1") (handle-id1 line)) (when (= group-identifier "

Re: swank-clojure-1.1.0.jar

2010-09-29 Thread Christian Guimaraes
uot;. -- christian On Tue, Sep 28, 2010 at 11:01 PM, Phil Hagelberg wrote: > On Tue, Sep 28, 2010 at 2:30 PM, Christian Guimaraes > wrote: > > Thanks Joost, > > > > after fighting some hours with this stack (Clojure + Swank + Slime), > finally > > I could to put the

Re: swank-clojure-1.1.0.jar

2010-09-28 Thread Christian Guimaraes
Thanks Joost, after fighting some hours with this stack (Clojure + Swank + Slime), finally I could to put them to work together. Thanks for the tips. On Tue, Sep 28, 2010 at 2:03 PM, Joost wrote: > > > Christian Guimaraes wrote: > > Hi, > > > > the problem i

Re: swank-clojure-1.1.0.jar

2010-09-28 Thread Christian Guimaraes
Hi, the problem is the (concat "http://repo.technomancy.us/"; "swank-clojure-1.1.0.jar") in the swank-clojure.el this repo no longer exists. -- christian On Tue, Sep 28, 2010 at 12:59 PM, Joost wrote: > > > Christian Guimaraes wrote: >

swank-clojure-1.1.0.jar

2010-09-28 Thread Christian Guimaraes
Hello all, Where can I download swank-clojure-1.1.0.jar? My attempts to compile (using lein jar) are failing. I think is due to the repositories location. Or, better, how can I fix the repositories in the swank-clojure code. Thanks. -- christian guimaraes -- You received this message because

How often do you use REPL?

2010-09-27 Thread Christian Guimaraes
It's a noob question... I know But in my studies I use REPL 80% of the coding time. More advanced users still uses REPL so many times? thanks. -- christian guimaraes -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: tutorial on clojure protocols 1.2

2010-04-27 Thread Christian Guimaraes
Stuart, Great. Congratulations. And I was thinking about one Clojure course using this format. Stay here the sugestion ;-) -- Christian. On Tue, Apr 27, 2010 at 2:07 PM, Heinz N. Gies wrote: > On Apr 26, 2010, at 18:20 , Stuart Halloway wrote: > > > I have created a short (30 min) tutorial on

Re: Clojure talk TODAY (Feb 8) Paris, France 19:00

2010-02-08 Thread Christian Guimaraes
The talk will be in English or French? On Mon, Feb 8, 2010 at 2:13 PM, Laurent PETIT wrote: > I wish I could be present ! > > I wish you the best, > > regards, > > -- > Laurent > > 2010/2/8 Howard Lewis Ship : > > Just a last minute reminder ... > > > > I'll be presenting "Clojure: Towards the Es