1. Home
    1. Ruby
      1. Getting started with Ruby
      2. Variables and variable interpolation in Ruby
      3. Arrays in Ruby
      4. For loop in Ruby (iterating over array elements)
      5. Range in Ruby
      6. ARGV - the command line arguments of a Ruby program
      7. Open file and read content in Ruby
      8. Download an HTML page using Ruby
      9. Basic data structures in Ruby (Scalar, Array, Hash)
      10. Reading CSV file in Ruby
      11. Analyze Apache log file - count localhost in Ruby
      12. Pretty printing complex data structures in Ruby - like Data::Dumper in Perl
      13. The 14 most important Ruby Resources
      14. Sum of numbers in a file implemented in Ruby
      15. Number guessing game in Ruby
      16. Count web server hits using Ruby
      17. split in Ruby
      18. The conditional operator in Ruby
      19. Convert String to Number in Ruby
      20. Count digits in Ruby
      21. Hello World using CGI in Ruby
      22. Ruby ENV
      23. How to write to a file in Ruby
      24. Logical operators in Ruby (and, or, not), (&&, ||, !)
  2. Slides
  3. Introduction to Ruby
    1. Where to get Ruby
    2. Ruby on the command line
    3. irb - Interactive Ruby
    4. Hello world
    5. Ruby development environment
    6. Create variable and print content using puts
    7. Hello Foo using puts
    8. Hello Foo - print
    9. Ruby variable interpolation
    10. Hello Foo - puts with interpolation
    11. Hello Foo STDIN read
    12. Hello Foo STDIN and strip
    13. Hello Foo ARGV
    14. Interpolation with expression
    15. Ruby conditionals - if statement
    16. Ruby conditionals - if else statement
    17. Ruby path to current script
    18. Ruby command line arguments ARGV
    19. Variable Types in Ruby
    20. Resources
  4. Ruby Arrays
    1. Ruby Arrays intro
  5. Hashes
    1. Ruby empty Hash
    2. Ruby Hash add key-value pairs
    3. Ruby hash list keys
  6. Functions
    1. Why create functions?
    2. Hello World in a function
    3. Hello Person in a function
    4. Simple function
    5. Ruby Function with a star (asterisk)
    6. Function with a star example
    7. Ruby Function with two stars
  7. Filesystem
    1. Ruby makedir
    2. Ruby directory exists
    3. Ruby write to file
    4. Ruby append to file
    5. Ruby list files by using glob
  8. Time
    1. Ruby current time
    2. Ruby time string formating with strftime
  9. net/http
    1. API requests
    2. GET URL httpbin
    3. GET URL that does not exist (404 error)
    4. GET URL that pretends not to exist (404)
    5. GET URL that pretends to crash (500)
    6. Show request headers
    7. Get request headers using Firefox
    8. Get request headers using curl
    9. Set request headers
    10. Sending a POST request
    11. Setting header in POST request
    12. Debugging a failed request
    13. GET URL
  10. Other
    1. Ruby - Execute external command (system)
    2. Ruby - Execute external command (system) - failure