Skip to content

Instantly share code, notes, and snippets.

View jurjanpaul's full-sized avatar

Jurjan-Paul Medema jurjanpaul

View GitHub Profile
@jurjanpaul
jurjanpaul / yo.clj
Last active November 14, 2019 20:32 — forked from vijaykiran/yo.clj
(ns day4
(:require [clojure.java.io :as io]
[clojure.string :as str]))
(def input1 (io/resource "input1"))
(def lines (line-seq (io/reader input1)))
(defn parse [crypted]
(let [parts (str/split crypted #"-")
[sector checksum] (str/split (last parts) #"[\[\]]")