Skip to content

Instantly share code, notes, and snippets.

View FossiFoo's full-sized avatar

FossiFoo

  • freiheit.com
  • HH.de
View GitHub Profile
(defn- reduce-over-values
[func map]
(reduce (fn [accu [key value]]
(assoc accu key (func value)))
{} map))
@FossiFoo
FossiFoo / gist:7de2231f24e7b0b5214e
Created June 19, 2015 18:55
withTimeout does not fail task after timeout
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import org.testng.annotations.Test;
import com.linkedin.parseq.Engine;
import com.linkedin.parseq.EngineBuilder;
import com.linkedin.parseq.Task;
(def ^:private deps
'[[cloverage "1.0.6"]])
(deftask cloverage
"cloverage analysis"
[]
(let [pod (-> (get-env)
(update-in [:dependencies] into deps)
pod/make-pod
future)]
(ns cloverage.boot-cloverage
(:require [boot.core :as core]
[boot.pod :as pod]
[boot.util :as util]))
(def ^:private deps
'[[cloverage "1.0.8-SNAPSHOT"]])
(core/deftask cloverage
"cloverage analysis"
(set-env!
:source-paths #{"src/cljs"}
:resource-paths #{"resources"}
:dependencies '[[adzerk/boot-cljs "1.7.228-1" :scope "test"]
[adzerk/boot-cljs-repl "0.3.0" :scope "test"]
[adzerk/boot-reload "0.4.8" :scope "test"]
[pandeiro/boot-http "0.7.2" :scope "test"]
[com.cemerick/piggieback "0.2.1" :scope "test"]
[org.clojure/tools.nrepl "0.2.12" :scope "test"]
[weasel "0.7.0" :scope "test"]
Implementation of the example used to show react:
~~~
bind
[#ui/div | children:
[#ui/div text: "Jokes"]
[#ui/div | children:
[#ui/ul #joke-list]]
[#ui/div | children:
[#ui/input #add-joke, placeholder: "Insert an id"]
./gradlew :core-all:dependencyInsight --configuration compile --dependency opentracing
:core-all:dependencyInsight
io.opentracing:opentracing-api:0.31.0
+--- io.opentracing:opentracing-noop:0.31.0
| \--- io.opentracing:opentracing-util:0.31.0
| \--- io.opentracing.contrib:opentracing-web-servlet-filter:0.1.0
| \--- compile
+--- io.opentracing:opentracing-util:0.31.0 (*)
+--- io.opentracing.brave:brave-opentracing:0.27.0
| \--- compile