Skip to content

Instantly share code, notes, and snippets.

View mightyaleksey's full-sized avatar
☂️
I'm learning to have fun besides work

Aleksey Litvinov mightyaleksey

☂️
I'm learning to have fun besides work
View GitHub Profile
@mightyaleksey
mightyaleksey / index.js
Created November 2, 2018 15:01
rxjs-snake
import { fromEvent, interval, merge } from 'rxjs';
import { filter, map, mapTo, scan } from 'rxjs/operators';
const bodyLength = 5;
const startingDirection = 1;
const direction = fromEvent(document, 'keydown')
.pipe(
map(event => event.code),
filter(code => code.startsWith('Arrow')),
  • Docker
  • EditorConfig for VS Code
  • ESLint
  • Oceanic Plus
  • Sublime Text Keymap
  • Theme - Oceanic Next