I've reached Level 1 on Project Euler using Clojure as the programming language.
Level 1 is reached when you've completed 25 exercises.
You get this nice badge.
The problem. Find all the countries in the world without an ‘A’ in their name.
def remove_country_line_numbers(): return [l.strip() for l in open('countries.txt').readlines() \ if not l.strip().isdigit() and l.lower().find('a')==-1]
In : ", ".join(remove_country_line_numbers()) Out: "Belgium, Belize, Benin, Brunei, Burundi, Chile, Comoros, Congo, Republic of the, Cote d'Ivoire, Cyprus, Czech Republic, Djibouti, Egypt, Fiji, Greece, Guernsey, Hong Kong, Jersey, Lesotho, Liechtenstein, Luxembourg, Mexico, Morocco, Niger, Niue, Peru, Philippines, Puerto Rico, Reunion, Seychelles, Sweden, Timor-Leste, Togo, Turkey, United Kingdom, Yemen"
WTF is CISPA
Getting back to things and have updated my personal page at http://bradlucas.com.
It is a simple page with six thumbnails using Twitter Bootstrap (http://twitter.github.com/bootstrap/). What made it nice is that it is responsive so it works well on any device.
To be able to package your Clojure application as a single jar and to run it from a script or the command line is a very handy thing. At first it might not be all that apparent how to do this if you are staring to learn Clojure and are happily hacking away in the Repl or evaluating code from Emacs using Slime. But, it is possible and very easy to do. You'll need to be using Leiningen so at this point I'll assume you are.
Back in the day when you wanted to deliver your Java application you had to collect all the dependent Jar files and your own Jar or class files and then come up with a script to kick the whole thing off. You had to make sure things were all in the right place and your Classpath was correct.