Skip to content

Instantly share code, notes, and snippets.

@mrroman
mrroman / test.clj
Created December 7, 2018 11:00
Simple/fast CLI test runner for all your tests
(ns test
(:require [clojure.java.io :as io]
[clojure.string :as str]
[clojure.test :as t]))
(defonce test-folder "test")
(defonce test-filter #"^myapp.*$")
(defn test-file? [path]
(str/ends-with? path "_test.clj"))
@mrroman
mrroman / async-num-summer.clj
Last active February 21, 2018 11:11
A parallel sum of numbers from a core.async channel.
(ns test1.numbers
(:require [clojure.core.async :as a]))
(defn number-generator [n]
(let [c (a/chan 1024)]
(a/go
(dotimes [x n]
(a/>! c x))
(a/close! c))
c))
@mrroman
mrroman / .emacs
Last active October 4, 2016 09:09
New emacs use-package based config
;;;
;;; Healthy defaults :)
;;;
(setq inhibit-startup-screen t
initial-scratch-message nil
create-lockfiles nil
make-backup-files nil
column-number-mode t
scroll-error-top-bottom t
$ lein test-all
Performing task 'do' with profile(s): 'base,system,user,provided,dev,1.5'
Exception in thread "main" java.lang.ClassNotFoundException: yesql.types.Query
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at clojure.lang.DynamicClassLoader.findClass(DynamicClassLoader.java:61)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
@mrroman
mrroman / plan.md
Created February 16, 2016 12:17
Plan na Lambda Days 2016

Plan na Lambda Days 2016 :)