Skip to content

Instantly share code, notes, and snippets.

View LeartS's full-sized avatar
🙃
Furiously procrastinating

Leonardo Donelli LeartS

🙃
Furiously procrastinating
  • London, United Kingdom
View GitHub Profile

Solving brainteasers by using Livebook, Kino & VegaLite! (prebaked)

Mix.install([
  # Interactive cells in Livenotebooks
  {:kino, "~> 0.6.0"},
  # VegaLite interactive cells. VegaLite is a very nice charting library/framework
  {:kino_vega_lite, "~> 0.1.1"}
])
@LeartS
LeartS / proof.md
Created September 14, 2019 16:36
Keybase github account proof

Keybase proof

I hereby claim:

  • I am learts on github.
  • I am learts (https://keybase.io/learts) on keybase.
  • I have a public key ASA8p6pGLLJuweYk1N7w373slhoLKAnG5zV9woZt2xMXOQo

To claim this, I am signing this object:

@LeartS
LeartS / estrazioni.clj
Created March 1, 2017 14:18
Estrazioni per il secondo torneo di calcetto!
(def players
[:agostino :alessio :andrea :cesare :domenico :emanuela :fabio
:francesco :gennaro :jean-pierre :leonardo :luca :nelson :pierpaolo :rosario :sara])
(def old-teams
(set (map sort [[:agostino :rosario],
[:alessio :domenico],
[:emanuela :fabio],
[:francesco :gennaro],
[:pierpaolo :cesare],
@LeartS
LeartS / update
Created January 22, 2017 15:21
Gitlab update git hook to eslint commits and refuse if errors
#!/bin/bash
EXIT_CODE=0
REFNAME="$1"
OLDREV="$2"
NEWREV="$3"
# find file which have been Added, Copied, Modified or Renamed
UPDATED=`git diff-tree -r --diff-filter=ACMR --name-only $OLDREV $NEWREV '*.js'`