Skip to content

Instantly share code, notes, and snippets.

(defproject test-kondo-542 "0.1.0-SNAPSHOT"
:description "reproduces https://github.com/borkdude/clj-kondo/issues/542"
:url "http://example.com/FIXME"
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}
:dependencies [[org.clojure/clojure "1.10.1"]
[org.clojure/core.async "0.3.465"]
[org.clojure/core.memoize "0.5.9"]
[org.clojure/data.fressian "0.2.1"]
[org.clojure/java.jdbc "0.7.5"]

Keybase proof

I hereby claim:

  • I am markdingram on github.
  • I am markdingram (https://keybase.io/markdingram) on keybase.
  • I have a public key whose fingerprint is 6B42 68A7 0DC6 2415 5ED8 3578 7B16 ADDF A19B 1AA4

To claim this, I am signing this object:

@markdingram
markdingram / sudoku.kt
Created September 30, 2018 22:54
Killer Sudoku solver
import java.io.BufferedWriter
import java.io.OutputStreamWriter
typealias Grid = List<List<Int>>
data class Cell(val row: Int, val col: Int)
data class Group(val label: String, val total: Int? = null, val cells: List<Cell>)
data class NewBoard(val n: Int,
@markdingram
markdingram / git.clj
Created October 6, 2016 14:07
LambdaCD clone with reference
(ns git
(:require [clojure.java.io :as io]
[lambdacd.steps.support :as support]
[lambdacd-git.git :as git])
(:import (org.eclipse.jgit.api Git)
(org.eclipse.jgit.lib TextProgressMonitor RepositoryBuilder)
(java.io File)
(org.eclipse.jgit.transport RefSpec)))
;; a crude conversion of Jenkins CloneCommand
;; see http://dev.clojure.org/jira/browse/CLJS-536
;; without this clj->js strips namespaces from JSON
(extend-type Keyword
IEncodeJS
(-clj->js [x]
(if (namespace x)
(str (namespace x) "/" (name x))
(name x)))
(-key->js [x]
(clj->js x)))