This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; # EMULATING DATOMIC EXCISION VIA MANUAL DATA MIGRATION | |
;; ************************************* | |
;; ## Introduction | |
;; ************************************* | |
;; This Gist demonstrates a generic way to migrate an entire Datomic database | |
;; from an existing 'Origin Connection' to a clean 'Destination Connection', | |
;; while getting rid of some undesirable data and otherwise preserving history. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Response> | |
<Speak>Go Green, Go Plivo.</Speak> | |
</Response> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(let [meter-id "65670DEA-9891-4F03-9429-A180F9E0559F" | |
from-date (t/date-time 2016 8 1) | |
to-date (t/date-time 2016 8 3)] | |
(->> @(r/run (-> system :rethinkdb :conn) | |
[[:db "kvitebjorn"] | |
[:table "hourly"] | |
[:between [meter-id from-date] [meter-id to-date] | |
{:index "meter-readtime"}] | |
[:pluck :meter-address :day :month :year :hour :energy1-delta :interpolated :energy1 :readtime-hour]]) | |
(sort-by :readtime-hour))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(import '[kafka.admin RackAwareMode$Enforced$]) | |
=> kafka.admin.RackAwareMode$Enforced$ | |
RackAwareMode$Enforced$/MODULE$ | |
=> #object[kafka.admin.RackAwareMode$Enforced$ 0x184a28ca "Enforced"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## R2311 w/ simple compilation. | |
## | |
Mozilla/5.0 (iPhone; CPU iPhone OS 7_1_2 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/11D257 Safari/9537.53 | |
Run! | |
run# edn hash cljs hash value hash value | |
0 -2036190660 -1807595789 1482224470 :b | |
1 -2036190660 -1807595789 1482224470 :b | |
2 -2036190660 -1807595789 1482224470 :b |