This gist is just a placeholder for your solution of the Clojure Dojo from the Amsterdam Clojurians meetup.
To share your solution:
- fork this gist
- add the files containing your code to the forked gist
Thanks!
| @PropertySource(["classpath:application.properties"]) | |
| @Configuration | |
| @ComponentScan("org.sample") | |
| public class AppConfig { | |
| @Autowired | |
| private Environment environment | |
| } |
| (ns protocols) | |
| (defprotocol Flying | |
| (fly [this from to])) | |
| (extend-type String ; <- protocols are "open", as they install a dispatch facility rather than fussing with type inheritance | |
| Flying | |
| (foo [this from to] (println "Even a String can fly from" from "to" to))) |
| Please clone this gist to provide your solution! |
This gist is just a placeholder for your solution of the Clojure Dojo from the Amsterdam Clojurians meetup.
To share your solution:
Thanks!
| (ns life.core | |
| (:require [clojure.pprint :as pp])) | |
| (def grid [[:alive :dead :alive] | |
| [:dead :dead :dead] | |
| [:alive :alive :alive]]) | |
| (defn cell | |
| "Returns the value of the cell at the given coordinates" | |
| [grid [x y]] |
| package io.sytac; | |
| import java.io.IOException; | |
| import java.nio.file.Files; | |
| import java.nio.file.Paths; | |
| import java.util.ArrayList; | |
| import java.util.HashMap; | |
| import java.util.List; | |
| import java.util.Map; | |
| import java.util.stream.Collectors; |
| package tk.skuro.scala | |
| object Raffle extends App { | |
| case class Attendee (name: String) | |
| type Attendees = Array[Attendee] | |
| case class RaffleState(participants: Attendees = new Array(0)) | |
| val initialState = new RaffleState(new Array(0)) |
| # Amsterdam Clojurians meetup #80 | |
| # A ClojureScript dojo: the Berlin Clock! | |
| # | |
| # Fork this gist and put your solution in | |
| (ns berlin-clock.clock | |
| (:require [reagent.core :as reagent :refer [atom]])) | |
| (def now (atom (js/Date.))) |
I hereby claim:
To claim this, I am signing this object: