Skip to content

Instantly share code, notes, and snippets.

@dstorrs
dstorrs / gist:66b0eef55ff0c587134ed3fc5b22b7c6
Created July 5, 2023 21:21
Bizarre conversation on the Life Reset discord
eaglejarl
Today at 4:52 PM
I'm currently listening to Human Resource and thought I'd drop by to unburden myself of a thought I keep having:
IT'S FRICKIN' REAL! YOU CAN SEE, FEEL, TOUCH, SMELL, HAVE EMOTIONS, SUFFER PAIN, AND THE PEOPLE THERE ARE SELF-AWARE! HOW CAN YOU NOT THINK IT'S REAL?!?!?!
ahem. Thank you, I feel much better.
Am I the only one to have felt this way?
skarface
Today at 4:55 PM
@dstorrs
dstorrs / gist:cabf9527438f3753b2829801c3aca0f5
Created October 15, 2020 20:23
Dungeon Crawler Carl, bonuses from the 'Marked for Death' skill
After kill 1, bonus is 1 and total is 1
After kill 2, bonus is 1 and total is 2
After kill 3, bonus is 2 and total is 4
After kill 4, bonus is 2 and total is 6
After kill 5, bonus is 2 and total is 8
After kill 6, bonus is 3 and total is 11
After kill 7, bonus is 3 and total is 14
After kill 8, bonus is 3 and total is 17
After kill 9, bonus is 4 and total is 21
After kill 10, bonus is 4 and total is 25
@dstorrs
dstorrs / gist:a53ec8736551eb5745d1d5fd265b5062
Created May 26, 2018 15:10
Racket code: make-functional-setter
;; make-functional-setter: macro for generating non-mutating field
;; setter functions for a struct
;;
;; Define a struct: (struct book (title current-page filepath) #:transparent)
;;
;; Generate 'set-book-title', 'set-book-current-page', and 'set-book-filepath'.
;; All of these take two arguments: the 'book' struct to update and the new value.
;; (make-functional-setter book title)
;; (make-functional-setter book current-page exact-positive-integer?)