(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| (ns adoc.core | |
| (:require [clojure.string :as str])) | |
| (defn parse-name [room] | |
| (let [parsed (str/split room #"-") | |
| name (drop-last parsed) | |
| sector-checksum (str/split (last parsed) #"\[") | |
| sector (first sector-checksum) | |
| checksum (str/replace (last sector-checksum) "]" "")] | |
| {:room-name name |
| ;; fork me and include your solution! | |
| (ns nonograms.core | |
| (:require [clojure.java.io :as io]) | |
| (:import (javax.imageio ImageIO) | |
| (java.awt.image BufferedImage) | |
| (java.awt Image))) | |
| (defn read-image | |
| "Reads an image" | |
| [path] |
| (ns chess.core | |
| (:require | |
| [clojure.set]) | |
| ) | |
| (def pieces #{ \K \Q \N \B \R }) | |
| (def row-mapping | |
| {\1 1 \2 2 \3 3 \4 4 \5 5 \6 6 \7 7 \8 8} |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.