Skip to content

Instantly share code, notes, and snippets.

View Conaws's full-sized avatar

Conor White-Sullivan Conaws

View GitHub Profile
; In case anyone else is interested, here are a few specter functions I wrote that will
; find all the nested maps inside a composite datastructure,
; assign each of them a temporary id
; then it'll pull it apart into a list,
; and replace all references to the map with its id
(ns extract-maps
(:require [datascript.core :as d]
[com.rpl.specter :as sp
:refer [ALL LAST MAP-VALS FIRST subselect
@Conaws
Conaws / motion.cljs
Last active May 25, 2016 21:53
One of my first uses of cljs, don't hate.
(ns motioncards
(:require [reagent.core :as rx ]
[posh.core :as rx-db :refer [pull transact!]]
[reagent.session :as session]
[datascript.core :as mdb ]
[cljs.reader ]
[clojure.string :as str ]
[soda-ash.element :as s ])
(:require-macros
[reagent.ratom :refer [reaction]]