Skip to content

Instantly share code, notes, and snippets.

View Crowbrammer's full-sized avatar
🤨
Hello

Aaron Bell Crowbrammer

🤨
Hello
View GitHub Profile
@Crowbrammer
Crowbrammer / kolbs-cognitive-load.md
Created January 16, 2024 19:32
Cognitive load testing

Step 1: Experience

Is this Kolb's cycle reflecting on an experiment from a previous Kolb's?

Always cycle experiments from the previous Kolb's into your next one to ensure your marginal gains are compounding._

  • Yes
  • No

How will I use this Kolb's?

To see how valid measuring cognitive load is

@Crowbrammer
Crowbrammer / trampoline.md
Created January 15, 2024 20:06
Net to trampoline guided template

Planning

Schedule

Schedule fifteen minutes at the end of the week. Here you'll simply ask, "How accurate is my ability to predict barriers or conditions?" You will probably notice how difficult it is to anticipate barriers and conditions without experiencing it first! Did you schedule fifteen minutes this week for this skill? The skill to identify barriers and conditions?

  • Yes
  • No
@Crowbrammer
Crowbrammer / breaking-the-fall.md
Created January 11, 2024 20:26
Breaking your fall guided template

From a previous template?

  • Yes

  • No

Select a task/skill

@Crowbrammer
Crowbrammer / code_review.clj
Created April 3, 2023 04:22
Code Review for an Ordered Mistakes Feature
(def test-state
{:document {:paragraphs {:uuid-1 {}}
:paragraph-order [:uuid-1 :uuid-2 :uuid-3 :uuid-4]}
:edit {:spellcheck {:mistakes {:uuid-1 [[4 12] [38 42]]
:uuid-3 [[7 12]]
:uuid-4 []
:uuid-X [[0 4]]}}}})
(defn paragraph-order [state]
;; get-in can be more readable than destructuring. Just know
(ns ordered-mistakes
;; I used Criterium to benchmark
#_(:require [criterium.core :refer [quick-bench]]))
(def test-state
{:document {:paragraphs {:uuid-1 {}}
:paragraph-order [:uuid-1 :uuid-2 :uuid-3 :uuid-4]}
:edit {:spellcheck {:mistakes {:uuid-1 [[4 12] [38 42]]
:uuid-3 [[7 12]]
:uuid-4 []
@Crowbrammer
Crowbrammer / simple-piglify.clj
Created June 13, 2022 00:37
Simple Pig Latin
(ns piglatin)
(defn piglify
"First letter last. Add \"ay\". Leave punctuation alone."
[s]
(if (re-find #"[\.!?,]" s)
s
(str (subs s 1) (subs s 0 1) "ay")))
(defn pig-it [s]
@Crowbrammer
Crowbrammer / test-user.clj
Created May 27, 2022 23:52
Playing with Integrant REPL
(ns user
(:require [integrant.core :as ig]
[integrant.repl :refer [go halt prep reset reset-all set-prep!]]
[integrant.repl.state :as state]))
;; Getting one key setup.
(def config
@Crowbrammer
Crowbrammer / integrant-repl-log.txt
Created May 27, 2022 23:11
Experiments with Integrant REPL
user=> (reset)
:reloading (user)
Hoop
:resumed
user=> (reset)
:reloading ()
Hoop
:resumed
user=> (reset)
:reloading ()
@Crowbrammer
Crowbrammer / alter-var-root-ex.txt
Created May 25, 2022 17:21
Change the value vs. change where the variable points to.
user=> (def x (atom 1))
#'user/x
user=> (def y x)
#'user/y
user=> @x
1
user=> @y
1
user=> (swap! x inc)
2
@Crowbrammer
Crowbrammer / roman_numerals_decoder_srasu_notes.clj
Last active April 25, 2022 20:55
Srasu Roman Numeral notes
(ns translate-roman-numerals.core)
;; What follows is how I understand srasu's code.
;; This is awesome. Before, I'd do a defn with a get-in. This is better.
(def numeral-values
{\I 1
\V 5
\X 10
\L 50