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
(ns dev.test | |
"Test solutions for request from @LinchK https://t.me/clojure_ru/71619" | |
(:require | |
[criterium.core :as criterium])) | |
(set! *warn-on-reflection* true) | |
(def sample | |
"Data sample from https://t.me/clojure_ru/71619" |
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
(ns user | |
(:require | |
[criterium.core :as criterium])) | |
(set! *warn-on-reflection* true) | |
(defmulti test-multi :type) | |
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
(ns clojure-benchmarks.qwe | |
"To match or not to match. | |
https://t.me/clojure_ru/77518 | |
канаки, [25.01.19 19:57] | |
ну простой пример, когда нужно по разному хендлить [:qwe 0] и [:qwe n] | |
конечно это все можно и просто ификами написать, но это лишняя вложенностт") | |
(set! *warn-on-reflection* true) |
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
(ns app.lib.util.cljs-logging | |
#?(:cljs | |
(:require-macros app.lib.util.cljs-logging))) | |
#?(:clj (set! *warn-on-reflection* true) :cljs (set! *warn-on-infer* true)) | |
#?(:cljs | |
(do | |
(def console-fns |
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
(ns task.armstrong | |
"Task description: create function to check if integer is an | |
armstrong number https://en.wikipedia.org/wiki/Narcissistic_number. | |
For https://t.me/clojure_ru/103457." | |
(:require | |
[clojure.test :as t])) | |
(set! *warn-on-reflection* true) |
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
(ns app.lib.util.integrant | |
"Adapted integrant functionality. | |
Features: | |
- system rollback on failures; | |
- futures in `init-key` and `halt-key!` for parallel initialization." | |
(:require | |
[app.lib.util.exec :as exec] | |
[clojure.tools.logging :as log] | |
[integrant.core :as ig] | |
[vonstierlitz.online.util.logging-context :as logging-context])) |
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
(ns app.database.core | |
(:require | |
[app.database.sql-array :as sql-array])) | |
(set! *warn-on-reflection* true) | |
; SQL Helper functions | |
(defn text-array |
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
(ns edn-benchmark | |
"For https://twitter.com/GirlGameDev/status/1299153999057375237 | |
https://github.com/naomijub/edn-duration-benchmark" | |
(:require [clojure.edn :as edn])) | |
(set! *warn-on-reflection* true) | |
;;;; tested in REPL with `criterium.core/quick-bench` | |
;;;; windows 10, CPU 3.30 GHz, RAM 16 GB | |
;;;; clojure "1.10.1", java 11 |
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
(ns dev.env.cljs-repl.browser | |
"CLJS REPL in browser. See https://clojurescript.org/reference/repl. | |
Run local clojure.main REPL with `-m dev.env.cljs-repl.browser` parameters to work from Cursive." | |
(:require [cljs.repl :as repl] | |
[cljs.repl.browser :as browser])) | |
;••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• | |
(def ^:private output-dir "out/repl/browser") |
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
(ns user.flexiana-test-task | |
"https://twitter.com/itunderhood/status/1475580051571757065 | |
https://github.com/Terbiy/flexiana-test-task/blob/main/test/flexiana_test_task/core_test.clj" | |
(:require [clojure.test :refer :all])) | |
(set! *warn-on-reflection* true) | |
;;•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• | |
(defn scramble? [a b] |
OlderNewer