Skip to content

Instantly share code, notes, and snippets.

View wellfilverd's full-sized avatar
🎯
Focusing

Filipe W V Andrade wellfilverd

🎯
Focusing
View GitHub Profile
@wellfilverd
wellfilverd / gist:951a0320f35879e95193123d5bfb87c7
Last active February 22, 2024 16:51
Datomic restore parameters string
;; Given a set of configuration for restore, and a restore function
;; returns the restore parameters string to be used
;; System Parameters
;; config a (baseline) config b(100x more) config c(500x more)
;; ##############################################################################################
;; datomic.s3BackupConcurrency 25 2500 12500
;; datomic.backupBranchConcurrency 32 3200 16000
;; datomic.writeConcurrency 4 400 2000
@wellfilverd
wellfilverd / local-import-attribute.clj
Created September 19, 2023 13:29
Datomic Dev Local Import Attribute
(require '[datomic.client.api :as d])
(require '[datomic.local :as dl])
(def client (d/client {:server-type :datomic-local
:system "dev"}))
(def db-name "test-uri-db")
(d/create-database client {:db-name db-name})
(def conn (d/connect client {:db-name db-name}))
(d/transact conn {:tx-data [{:db/ident :uri/full-uri
@wellfilverd
wellfilverd / read-all-monday-inbox.js
Created November 30, 2020 13:18
Monday Read All Items inbox
setInterval(() => {
$('.post_box .toggle-update-button .v-icon').map((k, v) => { v.click() })
}, 1000)
if (options && options.component) {
instance.$slots.default = instance.$createElement(options.component, {
props: options.props,
});
}
instance.$mount(`#${refId}`);
instance.$on('onClose', this.close);