Skip to content

Instantly share code, notes, and snippets.

View fpischedda's full-sized avatar

Francesco Pischedda fpischedda

View GitHub Profile
fpischedda / datascript-datalog-random-examples.cljs
Created August 14, 2020 15:46
(ns rs.frontend.db
[cljs.core :refer [random-uuid]]
[datascript.core :as d]))
;; some ids, pre-generated to create mock data and references
(defonce ids {:image1 (random-uuid)
:image2 (random-uuid)
:image3 (random-uuid)
:image4 (random-uuid)
given an arbitarily nested list return a flattened list
Unit test included in the module itself for simplicity
Works with python2 and python3

Keybase proof

I hereby claim:

  • I am fpischedda on github.
  • I am fpischedda ( on keybase.
  • I have a public key whose fingerprint is AB96 944B 2108 1B09 8BCA DA5D C959 4B1F B6F1 BDF2

To claim this, I am signing this object:

Verifying that +francesco_pischedda is my blockchain ID.