I hereby claim:
- I am adamneilson on github.
- I am aan (https://keybase.io/aan) on keybase.
- I have a public key whose fingerprint is CB72 5E77 83B4 D681 6B27 C536 04F9 51C5 E8B4 CF95
To claim this, I am signing this object:
Verifying myself: My Bitcoin username is +aan. https://onename.io/aan |
I hereby claim:
To claim this, I am signing this object:
;; assume conn to be your database connection | |
(let [dbval (d/db conn) | |
;; dump the whole schema | |
schema (->> (d/q '[:find ?ident | |
:in $ ?p | |
:where | |
[:db.part/db :db.install/attribute ?attr] | |
[?attr :db/ident ?ident]] |
λ: (time (+ 2 2)) | |
"Elapsed time: 0.02675 msecs" | |
4 |
;; This dumps the Datomic schema from the user partition | |
(let [dbval (d/db conn)] | |
(->> (d/q '[:find ?ident | |
:in $ ?p | |
:where | |
[:db.part/db :db.install/attribute ?attr] | |
[?attr :db/ident ?ident]] | |
dbval :db.part/user) | |
(map (fn [attr] [(d/entity dbval (first attr))])) | |
(map (fn [attr] |
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″ /> | |
<style> | |
/* ———–Smartphone View———– */ | |
@media only screen and (max-width : 800px) { | |
/* All smartphone rules go inside here */ | |
} | |
/* ———–Tablet View———– */ | |
@media only screen and (max-width : 1180px) and (min-width : 801px) { |
// set the initial values | |
$a = 100; | |
$b = 200; | |
// swap them! | |
$a = $a + $b; // $a == 300 | |
$b = $a - $b; // $b == 100 | |
$a = $a - $b; // $a == 200 | |
// done! |
/** corrections for displaying gists in iOS **/ | |
.gist { | |
font-family: Consolas,"Liberation Mono",Courier,monospace; | |
font-size: 12px !important; | |
line-height:20px !important; | |
} | |
.gist .line, | |
.gist .line-number { | |
font-family: Consolas,"Liberation Mono",Courier,monospace; | |
font-size: 12px !important; |
(let [conn (langohr.core/connect)] | |
(comment do-stuff)) |