I hereby claim:
- I am skuro on github.
- I am skuro (https://keybase.io/skuro) on keybase.
- I have a public key whose fingerprint is FD97 B0FD 9DB1 112B 72CC 7288 F4B7 CED9 5A50 F60B
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# 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.))) |
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)) |
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; |
(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]] |
This gist is just a placeholder for your solution of the Clojure Dojo from the Amsterdam Clojurians meetup.
To share your solution:
Thanks!
Please clone this gist to provide your solution! |
(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))) |
@PropertySource(["classpath:application.properties"]) | |
@Configuration | |
@ComponentScan("org.sample") | |
public class AppConfig { | |
@Autowired | |
private Environment environment | |
} |