Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
RubyLearning.org Participants Information
Ruby
Tree: b050d49ad0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Countries
README.md
README.txt
README_old.txt
RL_participants_countries.rb
Ruby_Metaprogramming_5th_batch.png
countries_screenshot.png

README.md

RubyLearning.org Participants' Countries

Snapshot

Ruby_Metaprogramming_5th_batch.png

Requirement

gem install mechanize
gem install nokogiri

Usage

  • Set your login user name, password and course name at line 10-12 of RL_participants_countries.rb
  login_form['username'] = "*****"  # input your login user name, i.e. "asakawa"
  login_form['password'] = "*****"  # input your login password, i.e. "12345"
  course = "*****"  # input course name, i.e. "Core Ruby 20th batch"
  #teachers = {'India' => 1, 'Japan' => 1, 'United States' => 1}
  • Execute RL_participants_countries.rb
ruby RL_participants_countries.rb
  • Will get the output like this:
>ruby RL_participants_countries.rb
United States
Brazil
Germany
Spain
Canada
United Kingdom
Australia
Italy
Austria
Mexico
India
Chile
New Zealand
Greece
Poland
Cambodia
Ukraine
Japan
Venezuela

18
7
5
4
4
3
3
3
2
2
2
1
1
1
1
1
1
1
1
>Exit code: 0

You will get a chart!

Good luck,
ashbb

Something went wrong with that request. Please try again.