Skip to content

Instantly share code, notes, and snippets.

View fpischedda's full-sized avatar

Francesco Pischedda fpischedda

View GitHub Profile
@fpischedda
fpischedda / datascript-datalog-random-examples.cljs
Created August 14, 2020 15:46
datascript-datalog-random-examples
(ns rs.frontend.db
(:require
[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)
"""
flatten.py
Problem:
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 (https://keybase.io/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. https://onename.com/francesco_pischedda