https://github.com/nanafox/top-ruby-basics-projects
https://github.com/nanafox/top-ruby-basics-projects
ruby the-odin-project
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nanafox/top-ruby-basics-projects
- Owner: nanafox
- Created: 2024-04-07T14:17:44.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-15T15:02:40.000Z (over 1 year ago)
- Last Synced: 2024-12-27T18:15:32.006Z (over 1 year ago)
- Topics: ruby, the-odin-project
- Language: Ruby
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The Odin Project - Basic Ruby Projects
## Project: Caesar Cipher
[Source Code](caesar_cipher/)
### Description
This is a simple implementation of the Caesar Cipher in Ruby. The program takes
a string and a shift factor as input and returns the encrypted string.
### How to use
1. Clone this repository to your local machine.
2. Navigate to the project directory.
3. Run the program by executing the following command:
```bash
ruby caesar_cipher.rb
```
4. Follow the on-screen instructions to encrypt a string.
## Project: Sub Strings
[Source Code](substrings/)
### Description
This is a simple implementation of a method that takes a word as the first
argument and then an array of valid substrings (the dictionary) as the second
argument. It returns a hash listing each substring that was found in the original
string and how many times it was found.
### How to use
1. Clone this repository to your local machine.
2. Navigate to the project directory.
3. Run the program by executing the following command:
```bash
ruby sub_strings.rb
```
4. Follow the on-screen instructions to find the substrings in a word.
## Project: Bubble Sort
[Source Code](bubble_sort/)
### Description
This is a simple implementation of the Bubble Sort algorithm in Ruby.
## Project: Stock Picker
[Source Code](stock_picker/)
### Description
This is a simple implementation of a method that takes an array of stock prices,
one for each hypothetical day. It returns a pair of days representing the best
day to buy and the best day to sell.