I'm studying English because my English is usually strange.
But I don't know my English level, so I take a TOEIC exam in June to know my English level.
I exert the maximum effort.....
But I don't have confidence.
To-do
- Vocabulary
- Grammar
English version of http://codnote.net/ . But my english is usually strange.
I'm studying English because my English is usually strange.
But I don't know my English level, so I take a TOEIC exam in June to know my English level.
I exert the maximum effort.....
But I don't have confidence.
Are you using rvm?
rvm is a contraction of "Ruby Version Manager".
It makes can switch rubies easy.
Like this:
% rvm install 1.9.1
% rvm 1.9.1
% rvm install 1.8.7
% rvm 1.8.7
rvm switches $PATH and $GEM_HOME.
But... rvm is very intricate, it's not easy.
So I made ruby-tapper.
ruby-tapper is very easy.
HINT: ~/opt/ruby-tapper is example.
% git clone git://github.com/sorah/ruby-tapper ~/opt/ruby-tapper
Then add ~/opt/ruby-tapper/bin to your shell's $PATH.
HINT: ~/rubies is example.
HINT: rbt is command of ruby-tapper.
% mkdir ~/rubies
% rbt --rubies ~/rubies
Add ~/rubies/bin and ~/rubies/gem/bin to your shell's $PATH.
And set ~/rubies/gem to your shell's $GEM_HOME.
rvm can install rubies automatic, but ruby-tapper cannot.
./configure --prefix=$HOME/rubies/{ruby-version} to configure ruby.make && make install to install to tapper.Tapper name is directory in ~/rubies
Ruby-tapper is very useful and easy.
This patch adds fizz?, buzz?, fizzbuzz? methods to Ruby's Numeric class.
First download source of Ruby. Then configure the source, and run make main install-nodoc.
ruby -e '(1..100).map{|i|('FizzBuzz' if i.fizzbuzz?)|| ('Fizz' if i.fizz?) || ('Buzz' if i.buzz?) || i}'
And you can run this code.
You're not extended Integer class. The fizzbuzz methods included in Ruby.
I want to include these methods include in Ruby master...