This file contains hidden or 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 configparser | |
| import itertools as it | |
| import re | |
| _config = configparser.ConfigParser(interpolation=configparser.ExtendedInterpolation()) | |
| _config.read('config.ini') | |
| # expose built-in methods | |
| get = _config.get | |
| getboolean = _config.getboolean |
This file contains hidden or 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
| #!/bin/bash | |
| # --------------------------- | |
| # Author: Brandon Patram | |
| # Date: 2018-06-19 | |
| # | |
| # Description: List out merge commits and one off commits between | |
| # the last tagged release and the current state of master. | |
| # | |
| # Usage: publish-release.sh [-y] [-h] [-v] [-V] | |
| # Examples: |
This file contains hidden or 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
| (ns malli-select | |
| (:require | |
| [malli.core :as m] | |
| [malli.util :as mu])) | |
| (defn select | |
| "Takes a malli schema and a vector of selection patterns and returns a schema | |
| with keys that don't match any selection patterns set as optional. | |
| A selection pattern either a keyword or a map. If a map, the keys must be |
This file contains hidden or 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
| ([lint/min-max 0] | |
| [lint/rand-int-one 0] | |
| [lint/require-explicit-param-tags 0] | |
| [lint/incorrectly-swapped 1] | |
| [lint/update-with-swap 2] | |
| [lint/duplicate-field-name 6] | |
| [lint/existing-constant 6] | |
| [lint/if-not-not 15] | |
| [style/update-in-assoc 16] | |
| [style/when-not-not 20] |
This file contains hidden or 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
| (read-form 'ctx-123 '(into [(?* args)] (?trans (?? f) ?coll)) 'form-123) | |
| ;; returns | |
| (clojure.core/let | |
| [simple-seq-form-40240 form-123] | |
| (clojure.core/and | |
| (clojure.core/list? simple-seq-form-40240) | |
| (clojure.core/= 3 (clojure.core/count simple-seq-form-40240)) | |
| (clojure.core/let |
OlderNewer