Coding related daily practice to improve muscle memory of various techniques.
-
vi in the browser (Vimium for chrome)
- 5 min
- muscle memory for basic usefull key combinations
-
ruby TDD kata (TDD - Test Driven Development)
- 15 min - 2 hours
- muscle memory for ES6 project setup
- muscle memory for TDD - red, green, refactor style problem solving
-
- 15 min - 2 hours
- muscle memory for ES6 project setup
- muscle memory for TDD - red, green, refactor style problem solving
-
- 5 min
- muscle memory for basic usefull key combinations
(Vimium for chrome)
browse the web with nothing but your keyboard
key commands based on the Vimium demo video
j - move down
k - move up
d - move half page down
20d - move 10 pages down
u - move half page up
<SHIFT> - F - follow a link and open in new tab
F - follow a link
<SHIFT> - H - go back
<SHIFT> - L - go forward
<SHIFT> - K - go tab right
<SHIFT> - J - go tab left
x - close tab
o - open book marks, history and google searches
navigate using shortcuts
<SHIFT> - T - search open tabs
? - available keybaord shortcuts
Dojo exercise
- In browser search for "hn"
f
open hacker newsd
move down to find something with lots of commentsSHIFT-F
open in new tab- on something that is interesting
SHIFT-F
open in new tabSHIFT-T
find open tab with commentsj
downk
upd
down pageu
up page20d
move a fair way downgg
go to top?
show optionsf
navigate optionsj
show advanced- learn about
gu
go up url hierarchyp
open clipboard's urlgs
view page source
Assuming you have neovim installed and want to write ruby tests in one split, implementation in another split and a terminal with continually running tests in another.
Dojo exercise
- assuming a test setup as per [ruby TDD kata]
- add guard
bundle
cat >> Gemfile gem "guard" gem "guard-rspec"
guard init rspec
configure guardvi
open neovim:e spec/tennis_spec.rb
edit the spec file:vsplit lib/tennis.rb
edit the implementation file:vsplit | terminal
vsplit a terminal, orvs | te
guard
in terminal<CTRL>-\ <CTRL>-n
to go to navigation mode in terminal under neovim<CTRL>-w l
to jump to a different split (l for one to right):w
save the test and the terminal should re-run tests<CTRL>-w h
to jump back to the lefti
to put terminal into insert mode