- 1. Home
- 1.1. Ruby
- 1.1.1. Getting started with Ruby
- 1.1.2. Variables and variable interpolation in Ruby
- 1.1.3. Arrays in Ruby
- 1.1.4. For loop in Ruby (iterating over array elements)
- 1.1.5. Range in Ruby
- 1.1.6. ARGV - the command line arguments of a Ruby program
- 1.1.7. Open file and read content in Ruby
- 1.1.8. Download an HTML page using Ruby
- 1.1.9. Basic data structures in Ruby (Scalar, Array, Hash)
- 1.1.10. Reading CSV file in Ruby
- 1.1.11. Analyze Apache log file - count localhost in Ruby
- 1.1.12. Pretty printing complex data structures in Ruby - like Data::Dumper in Perl
- 1.1.13. The 14 most important Ruby Resources
- 1.1.14. Sum of numbers in a file implemented in Ruby
- 1.1.15. Number guessing game in Ruby
- 1.1.16. Count web server hits using Ruby
- 1.1.17. split in Ruby
- 1.1.18. The conditional operator in Ruby
- 1.1.19. Convert String to Number in Ruby
- 1.1.20. Count digits in Ruby
- 1.1.21. Hello World using CGI in Ruby
- 1.1.22. Ruby ENV
- 1.1.23. How to write to a file in Ruby
- 1.1.24. Logical operators in Ruby (and, or, not), (&&, ||, !)
- Slides
- 2. Introduction to Ruby
- 2.1. Where to get Ruby
- 2.2. Ruby on the command line
- 2.3. irb - Interactive Ruby
- 2.4. Hello world
- 2.5. Ruby development environment
- 2.6. Create variable and print content using puts
- 2.7. Hello Foo using puts
- 2.8. Hello Foo - print
- 2.9. Ruby variable interpolation
- 2.10. Hello Foo - puts with interpolation
- 2.11. Hello Foo STDIN read
- 2.12. Hello Foo STDIN and strip
- 2.13. Hello Foo ARGV
- 2.14. Interpolation with expression
- 2.15. Ruby conditionals - if statement
- 2.16. Ruby conditionals - if else statement
- 2.17. Ruby path to current script
- 2.18. Ruby command line arguments ARGV
- 2.19. Variable Types in Ruby
- 2.20. Resources
- 3. Ruby Arrays
- 3.1. Ruby Arrays intro
- 4. Hashes
- 4.1. Ruby empty Hash
- 4.2. Ruby Hash add key-value pairs
- 4.3. Ruby hash list keys
- 5. Functions
- 5.1. Why create functions?
- 5.2. Hello World in a function
- 5.3. Hello Person in a function
- 5.4. Simple function
- 5.5. Ruby Function with a star (asterisk)
- 5.6. Function with a star example
- 5.7. Ruby Function with two stars
- 6. Filesystem
- 6.1. Ruby makedir
- 6.2. Ruby directory exists
- 6.3. Ruby write to file
- 6.4. Ruby append to file
- 6.5. Ruby list files by using glob
- 7. Time
- 7.1. Ruby current time
- 7.2. Ruby time string formating with strftime
- 8. net/http
- 8.1. API requests
- 8.2. GET URL httpbin
- 8.3. GET URL that does not exist (404 error)
- 8.4. GET URL that pretends not to exist (404)
- 8.5. GET URL that pretends to crash (500)
- 8.6. Show request headers
- 8.7. Get request headers using Firefox
- 8.8. Get request headers using curl
- 8.9. Set request headers
- 8.10. Sending a POST request
- 8.11. Setting header in POST request
- 8.12. Debugging a failed request
- 8.13. GET URL
- 9. Other
- 9.1. Ruby - Execute external command (system)
- 9.2. Ruby - Execute external command (system) - failure