Skip to content

Instantly share code, notes, and snippets.

View luciodale's full-sized avatar
🎾

Lucio D'Alessandro luciodale

🎾
View GitHub Profile
@luciodale
luciodale / Drag and drop cljs
Last active March 23, 2021 10:02
testing columns and rows drag and drop for html tables in reagent
(ns cljs.tutorials.frontend.views
(:require [reagent.core :as r]))
(def state (r/atom {:columns ["a" "b" "c" "d"]
:rows (mapv (fn [x]
{"a" (str "a-" x)
"b" (str "b-" x)
"c" (str "c-" x)
"d" (str "d-" x)})(range 10))}))
@luciodale
luciodale / highlight-pack.css
Last active September 17, 2020 09:41
highlight-pack.css
/*
Railscasts-like style (c) Visoft, Inc. (Damien White)
*/
.debug-code pre {
background: #222;
border: none;
display: block;
@luciodale
luciodale / emacs-buffer-management.el
Last active September 22, 2019 11:43
Emacs config files
(require 'windmove)
;;;###autoload
(defun buf-move-up ()
"Swap the current buffer and the buffer above the split.
If there is no split, ie now window above the current one, an
error is signaled."
;; "Switches between the current buffer, and the buffer above the
;; split, if possible."
(interactive)

Keybase proof

I hereby claim:

  • I am luciodale on github.
  • I am luciodalessandro (https://keybase.io/luciodalessandro) on keybase.
  • I have a public key whose fingerprint is 6370 8524 C7D1 2A38 E56E 2A09 D5ED 7D83 6131 BB75

To claim this, I am signing this object: