Skip to content

Instantly share code, notes, and snippets.

@dpolivaev
dpolivaev / Elevator Kata
Last active February 18, 2021 20:55 — forked from mattflo/Elevator Kata
These are some features. They can be implemented in any order you prefer.
* an elevator responds to calls containing a source floor and direction
* an elevator delivers passengers to requested floors
* an elevator doesn't respond immediately. consider options to simulate time
* elevator calls are queued not necessarily FIFO
* you may test a sequence of events happening when passengers use the elevator
* you may implement current floor monitor
* you may implement direction arrows
* you may implement doors (opening and closing)
@dpolivaev
dpolivaev / Instructions.md
Last active January 26, 2016 10:26 — forked from pgilad/Instructions.md
Git commit-msg hook to validate for jira issue or the word merge

Instructions

  • copy the file commit-msg to .git/hooks/commit-msg
  • make sure your delete the sample file .git/hooks/commit-msg.sample
  • Make commit msg executable. chmod +x .git/hooks/commit-msg
  • Edit commit-msg to better fit your development branch, commit regex and error message
  • Profit $$

Shell example