Skip to content

Instantly share code, notes, and snippets.

@mk
mk / deps.edn
Created September 23, 2023 19:12
clerk-issue-558-repro
{:paths ["."]
:deps {io.github.nextjournal/clerk {:mvn/version "0.14.919"}}}
@mk
mk / deps.edn
Created January 17, 2023 15:22
tools.analyzer hashCode change
{:paths ["."]
:deps {org.clojure/tools.analyzer {:mvn/version "1.1.0"}
org.clojure/tools.analyzer.jvm {:mvn/version "1.1.0"}}}
@mk
mk / deps.edn
Last active November 25, 2022 08:39
graal.js IllegalArgumentException
{:paths ["."]
:deps {org.graalvm.js/js {:mvn/version "21.3.2.1"}}}
@mk
mk / deps.edn
Created November 25, 2022 08:00
Graal IllegalArgumentException
{:paths ["."]
:deps {org.graalvm.js/js {:mvn/version "21.3.2.1"}}}
@mk
mk / deps.edn
Created May 9, 2022 15:12
nrepl classpath-namespaces issue
{:paths ["."]}
@mk
mk / deps.edn
Last active February 15, 2022 12:17 — forked from sritchie/deps.edn
Double Pendulum in Clerk
;; here were the deps I needed for this... I don't know enough vega-lite to go without the Hanami example I had
;; already built, so excuse me there!
{:paths ["dev"]
:deps {io.github.nextjournal/clerk {:local/root "../clerk"}
notespace-sicmutils {:mvn/version "0.16.2"}
aerial.hanami/aerial.hanami {:mvn/version "0.12.7"}
sicmutils/sicmutils {:git/url "https://github.com/sicmutils/sicmutils"
:sha "8658c0c8883b8225a742b9422061f40b852f375d"}}}
@mk
mk / mk-local.el
Last active December 23, 2022 14:50
My Emacs Config
;; my customizations on Jack Rusher's excellect emacs config
;; see https://github.com/jackrusher/dotemacs
;; This lives in ~/.emacs/lisp/
;; set initial window size to left half of screen
(custom-set-variables
'(default-frame-alist
(quote
((width . 158)
@mk
mk / error.log
Last active January 14, 2019 15:19
OpenBLAS build errors
/var/folders/n6/j_fp4hxn1lb039365v69hbmr0000gn/T//ccad8ZY0.s:255:9: error: register %xmm16 is only available with AVX512
vxorps %xmm16, %xmm16, %xmm16
^~~~~~
/var/folders/n6/j_fp4hxn1lb039365v69hbmr0000gn/T//ccUomD5h.s:338:19: error: register %xmm31 is only available with AVX512
vmovss 32(%rsp), %x/var/folders/n6/j_fp4hxn1lb039365v69hbmr0000gn/T//ccad8ZY0.sm:m2563:110
: error: register %xmm16 is only available with AVX512
v c o m i s s % x m^m~1~6~,~ ~%
xmm0
^~~~~~
/var/folders/n6/j_fp4hxn1lb039365v69hbmr0000gn/T//ccUomD5h.s:339:16: error: register %xmm31 is only available with AVX512
@mk
mk / dependency.clj
Created July 5, 2018 18:39
Figwheel selective build
(ns com.nextjournal.build-tools.figwheel.dependency
(:require [clojure.tools.namespace.track :as ctn.track]
[clojure.tools.namespace.dir :as ctn.dir]
[clojure.tools.namespace.file :as ctn.file]
[clojure.tools.namespace.dependency :as ctn.dep]
[clojure.tools.namespace.parse :as ctn.parse]
[clojure.tools.namespace.find :as ctn.find]
[clojure.java.io :as io]
[clojure.tools.reader :as reader])
(:import java.io.PushbackReader))
@mk
mk / compare.sh
Last active March 6, 2018 09:28
tools.deps problem with jnr-unixsocket
#!/bin/bash
set -eu pipefail
echo "Classpath tree built with lein:"
lein deps :tree
echo "\nClasspath tree built with tools.deps (notice com.github.jnr/jffi :classifier \"native\" missing):"
clj -Stree
echo "\nrunning socket_sample.clj with lein"