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 exact-expr [expr] | |
(cond (coll? expr) (map exact-expr expr) | |
(number? expr) (rationalize expr) | |
:else expr)) | |
(defmacro exact [expr] | |
(exact-expr expr)) | |
(exact (* 2452.45 100)) | |
;=> 245245N |
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
{ | |
// http://eslint.org/docs/rules/ | |
"ecmaFeatures": { | |
"arrowFunctions": false, // enable arrow functions | |
"binaryLiterals": false, // enable binary literals | |
"blockBindings": false, // enable let and const (aka block bindings) | |
"classes": false, // enable classes | |
"defaultParams": false, // enable default function parameters | |
"destructuring": false, // enable destructuring |
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
# to iterate on this: | |
# 1) hit edit in gist | |
# 2) change | |
# 3) hit raw link and copy | |
# 4) target_url= | |
# 5) curl -i https://git.io/ -F "url=${target_url:?}" | grep ^Location: | cut -d: -f2- | |
# ^ above no longer works - if using macos you can probably copy and paste between machines tho | |
set -xe | |
cd | |
# if sudo -v # ensure this is a non-work computer before uncommenting this |