Re: Clojure mug templates

2012-12-29 Thread John Gabriele
On Saturday, December 29, 2012 8:54:44 AM UTC-5, Nikita Beloglazov wrote: > > Hi > > I taught small clojure class at my university this semester. At the end of > the class I printed "clojure" mugs for my students with their names. > Here I want to share small javascript/html page I used to genera

Re: Unseemingly Eager Clojure Apprentice Seeking FizzBuzz Feeback

2012-12-29 Thread John Gabriele
On Saturday, December 29, 2012 5:15:49 PM UTC-5, Sean Chalmers wrote: > > ... but changing it to more pure function would probably deal with that. Another benefit of pure functions is that they're easier to test. > I'll have a play with 'when' as well, hadn't tried that one yet. `when` prov

Re: Clarification on setting up Clojure, Lein and Emacs on fedora

2012-12-29 Thread John Gabriele
Sayth, Not sure I follow everything in your post, but here are some tips: 1. You don't need to "install" Clojure itself. Leiningen takes care of that for you. See 2. Make sure you install Emacs 24. I don't know what the Fedora incantations are for this. 3. Once you've got Emacs 24 install

Re: Clarification on setting up Clojure, Lein and Emacs on fedora

2012-12-29 Thread John Gabriele
On Saturday, December 29, 2012 10:52:15 PM UTC-5, John Gabriele wrote: > > Sayth, > > Not sure I follow everything in your post, but here are some tips: > > 1. You don't need to "install" Clojure itself. Leiningen takes care of > that for you. See > > W

Re: deploying clojure/compojure web apps

2013-01-09 Thread John Gabriele
On Wednesday, January 9, 2013 1:26:07 PM UTC-5, Phil Hagelberg wrote: > > > I recommend simply embedding jetty and writing a -main function that > uses run-jetty. Then you can just ship an uberjar out to deploy. > Ok. Suppose I've got a stock webapp generated via lein new compojure my-webap

Re: deploying clojure/compojure web apps

2013-01-09 Thread John Gabriele
On Wednesday, January 9, 2013 4:08:50 PM UTC-5, Phil Hagelberg wrote: > > > John Gabriele writes: > > > What would I need to do in order to embed jetty so I can create an > uberjar > > (`lein uberjar`) and deploy it (I suppose via: `java -jar > &g

Re: deploying clojure/compojure web apps

2013-01-09 Thread John Gabriele
On Wednesday, January 9, 2013 4:27:57 PM UTC-5, John Gabriele wrote: > > On Wednesday, January 9, 2013 4:08:50 PM UTC-5, Phil Hagelberg wrote: >> >> >> and this in main.clj: >> >> (defn -main [& [port]] >> (let [port (Integer. (or port (Sy

Re: deploying clojure/compojure web apps

2013-01-09 Thread John Gabriele
On Wednesday, January 9, 2013 4:39:06 PM UTC-5, John Gabriele wrote: > > > Still though, need to add a :main to project.clj I think. > > BTW, tried `:main my-webapp.handler`. `lein uberjar` succeeds, but when I try to run the jar (via `java -jar my-webapp-0.1.0-SNAPSHOT-stand

Re: deploying clojure/compojure web apps

2013-01-09 Thread John Gabriele
On Wednesday, January 9, 2013 5:03:49 PM UTC-5, Aaron Cohen wrote: > > On Wed, Jan 9, 2013 at 4:27 PM, John Gabriele > > wrote: > >> On Wednesday, January 9, 2013 4:08:50 PM UTC-5, Phil Hagelberg wrote: >>> >>> >>> John Gabriele writes: >>&

Re: deploying clojure/compojure web apps

2013-01-09 Thread John Gabriele
Thanks, all. Updated CDS basic web dev tut with this deployment info. ---John -- 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 Note that posts from new members are moderated - please be pat

Re: Full stack Clojure web/REST framework - is there any mileage in it?

2013-01-12 Thread John Gabriele
On Friday, January 11, 2013 4:33:15 PM UTC-5, Eric MacAdie wrote: > > Is there a page that gives "Clojure web recipes"? It would be great for > beginners if you could have one place that says "To make a web app, you > need X, Y and Z, and here are libraries that fulfil each of these needs." > Ma

Re: Finding latest versions of clojars

2013-01-13 Thread John Gabriele
On Sunday, January 13, 2013 8:46:59 AM UTC-5, Omer Iqbal wrote: > > Hey guys, > I recently decided to shift to clojure, and am loving the experience so > far. > However is there a method to find the latest versions of dependencies in > lein2? It is rather inconvenient to search for them manually.

Re: Better ways of documenting functions with type information?

2013-01-13 Thread John Gabriele
On Sunday, January 13, 2013 1:03:35 PM UTC-5, Marcel Möhring wrote: > > Hello, > > is there a better way to document a function if I want to include type > information > and parameters for in/out? > > Currently I am using this approach but it feels rather clumsy: > > "Takes a screen and a pixe

Re: Finding latest versions of clojars

2013-01-13 Thread John Gabriele
On Sunday, January 13, 2013 1:32:40 PM UTC-5, John Gabriele wrote: > > On Sunday, January 13, 2013 8:46:59 AM UTC-5, Omer Iqbal wrote: >> >> Hey guys, >> I recently decided to shift to clojure, and am loving the experience so >> far. >> However is there a m

<    1   2   3