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
(defn between [from target to] | |
(and (<= from target) (<= target to))) | |
(defn calculate-loan-size | |
[loan-amount] | |
(cond | |
(between 1 loan-amount 10000) :small | |
(between 10001 loan-amount 50000) :modest | |
(between 50001 loan-amount 150000) :large | |
(>= loan-amount 150001) :jumbo)) |
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
(def log-store (atom {})) | |
(defn debug [tag val] | |
(swap! log-store update-in [tag] #(conj (or % []) val)) | |
val) | |
(defn logs | |
[tag & functions] | |
(let [tag (if (number? tag) | |
(nth (keys @log-store) tag) |
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
{d user/debug-data-reader} |
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
{:aliases {:dev {:extra-paths ["/Users/dliman/.clojure"]}}} |
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
(use-package! smartparens | |
:init | |
(map! :map smartparens-mode-map | |
... | |
"s-5" #'user-reset-log-store | |
"s-6" #'user-tags | |
"s-7" #'user-logs)) | |
;; or |
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
(defun user-reset-log-store () | |
(interactive) | |
(cider-interactive-eval "(reset! user/log-store {})")) | |
(defun user-tags () | |
(interactive) | |
(cider--pprint-eval-form "(user/tags)")) | |
(defun user-logs (&optional index-or-name) | |
(interactive) |
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
/* Generated on: Fri Feb 03 2023 01:39:15 GMT+0000 (Coordinated Universal Time) */ | |
/* ========================================================================== | |
normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css | |
========================================================================== */ | |
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative; |
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
// build.gradle | |
dependencies { | |
implementation 'com.github.davidmoten:rxjava2-jdbc:0.2.2' | |
implementation 'org.postgresql:postgresql:42.2.5' | |
} |
NewerOlder