Skip to content

Instantly share code, notes, and snippets.

View daveyarwood's full-sized avatar

Dave Yarwood daveyarwood

View GitHub Profile
@daveyarwood
daveyarwood / 00-home-dir-conjure.edn
Last active February 5, 2020 17:22
Dave's setup for starting a prepl server in tools.deps projects
;; ~/.config/conjure/conjure.edn
{:conns
;; My `clj -Aprepl-server` alias spits out a `.socket-port` file when it starts
;; a prepl server. This configuration allows Conjure to find the prepl server
;; without needing to specify the port explicitly.
{:cwd {:port #slurp-edn ".socket-port"}}}
@daveyarwood
daveyarwood / clapping_music.alda
Created August 20, 2016 15:12
Steve Reich's "Clapping Music" in Alda
# Clapping Music (1972)
# for two performers
#
# Steve Reich
#
# sheet music:
# https://sites.ualberta.ca/~michaelf/SEM-O/SEM-O_2014/Steve's%20piece/clapping_reich.jpg
(def clap (alda-code "o2 d+8"))
@daveyarwood
daveyarwood / SketchSystems.spec
Last active September 11, 2020 00:29
Clubhouse process
Clubhouse process
Backlog*
select -> Ready to Crush
Ready to Crush
start -> Crushing
Crushing
ready for review -> Needs Code Review
@daveyarwood
daveyarwood / SketchSystems.spec
Created January 25, 2021 19:57
Geir - new login flow
Geir - new login flow
page load -> NotAuthenticated
NotAuthenticated
CheckForSessionCookie*
has session cookie -> Authenticated
no session cookie -> OrgCodeScreen
CheckForCognitoProvidedValues
var expectedOrgName = 'AdzerkBC';
var expectedBoardName = 'The Sprint Board';
function getOrgName() {
return $('.board-header-btn-org-name .board-header-btn-text').text();
}
function getBoardName() {
return $('.board-header-btn-name .board-header-btn-text').text();
}
@daveyarwood
daveyarwood / radiohead-chords.alda
Created August 6, 2016 15:14
An exercise in randomly generated "Radiohead chord" sequences
# Ben Levin's "Radiohead Chord Generator" video:
# https://www.youtube.com/watch?v=iYU_2hfFPM0
# Rules:
#
# From a MAJOR chord (e.g. C), you can:
# - move to the parallel minor (Cm)
# - move down to the relative minor (Am)
# - move up 1/2 step to a minor chord (Dbm)