Skip to content

Instantly share code, notes, and snippets.

st=>start: Start:>http://www.google.com[blank]
e=>end:>http://www.google.com
op1=>operation: My Operation
sub1=>subroutine: My Subroutine
cond=>condition: Yes
or No?:>http://www.google.com
io=>inputoutput: catch something...
para=>parallel: parallel tasks
const createKeyEventObserver = () => {
const PRESS_THRESHOULD_MS = 500
const LONG_PRESS_TIME_MS = 1500
const keyDowns = fromEvent(document.body, 'keydown')
const keyUps = fromEvent(document.body, 'keyup')
const source = keyDowns
.pipe(
merge(keyUps),