Chord diagrams show directed relationships among a group of entities. This example also demonstrates simple interactivity by using mouseover filtering. Layout inspired by Martin Krzywinski's beautiful work on Circos.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def ^ThreadLocal kryo-registry | |
(proxy [ThreadLocal] [] | |
(initialValue [] | |
(doto (co/default-registry) (comment register-custom))))) | |
(defn- freeze | |
[data] | |
(cb/write-bytes (.get kryo-registry) data)) | |
(defn- thaw |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set editing-mode vi | |
set keymap vi-insert | |
$if mode=vi | |
set keymap vi-command | |
"gg": beginning-of-history | |
"G": end-of-history | |
"\C-l": clear-screen | |
set keymap vi-insert | |
"kj": vi-movement-mode | |
"\C-w": backward-kill-word |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; [clojure.zip :as zip] | |
; [clojure.data.xml :refer [parse-str] :as x] | |
; [clojure.data.zip.xml :refer [xml-> text] :as zx] | |
(defn parse-xml | |
[s] | |
(-> s x/parse-str zip/xml-zip)) | |
(defn update-in-xml |