Skip to content

Instantly share code, notes, and snippets.

View ribelo's full-sized avatar
🙃

Rafał Krzyważnia ribelo

🙃
View GitHub Profile
@ribelo
ribelo / doxa_re_frame.cljs
Last active April 18, 2021 17:02
doxa + re-frame
(require '[ribelo.doxa :as dx])
(require '[re-frame.core :as rf])
;; despite general good practice, in my case it doesn't work to keep all data in
;; one db. in every application I have to save some data and removing from store
;; data concerning ui and other stuff is not cool.
;; declare mutiple db
(def default-db (dx/create-dx))
@ribelo
ribelo / echarts.clj
Last active May 6, 2019 15:34
clojuypter & echarts
(ns clojupyter.echarts
(:require [clojupyter.misc.display :as display]
[cheshire.core :as json]
[cuerdas.core :as str]))
(defn init []
(let [code "require.config({
paths: {
echarts: 'https://cdnjs.cloudflare.com/ajax/libs/echarts/4.0.4/echarts-en'