That "gap between stimulus and response" is in some circles known as "mindfulness". And meditation is an effective exercise for building and strengthening that gap.
What the post describes is essentially some form of micro journaling to build a cached hashmap of the thought patterns you want your mind to have.
Also interesting is the notion of gap as I hear it used in psychology to describe post-traumatic stress.
In the first case the gap is too quick. In the last, it’s too long.
Also, in literature, another definition describes irony as having a “gap”.
“Gap” is obviously polysemous in these applications, but contain the same notion of spacing (which is also critical in music and art!).