Skip to content

Instantly share code, notes, and snippets.

@wbailey
Created March 21, 2011 07:51
Show Gist options
  • Save wbailey/879159 to your computer and use it in GitHub Desktop.
Save wbailey/879159 to your computer and use it in GitHub Desktop.
Announcing the code kata project
wesbailey@feynman:~/tmp/code_katas> bundle install
Using ZenTest (4.4.2)
...
Using bundler (1.0.10)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
wesbailey@feynman:~/tmp> cd code_katas/
...
Do you wish to trust this .rvmrc from now on?
============================================================
(y for yes, n for no) > y
Using /Users/wesbailey/.rvm/gems/ruby-1.9.2-p180 with gemset code_katas
wesbailey@feynman:~/tmp> git clone [email protected]:wbailey/code_katas.git
Cloning into code_katas...
remote: Counting objects: 25, done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 25 (delta 11), reused 0 (delta 0)
Receiving objects: 100% (25/25), done.
Resolving deltas: 100% (11/11), done.
wesbailey@feynman:~/tmp/code_katas> kata take calculator.rb
Calculator Kata
Create a calculator that is initialized with a string expression
- detail: The expression is of the form digits separated by commas: "1,2"
- detail: The expression is accessed by a method named expr
- detail: The expression can be reset for evaluation at any time without re-initializing
- example: Calculator.new "1,2"
completed (Y|n):
wesbailey@feynman:~/tmp/code_katas> kata setup calculator.rb
Creating github repo...complete
creating files for repo and initializing...done
You can now change directories to calculator-2011-03-21-005535 and take your kata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment