An open API service indexing awesome lists of open source software.

https://github.com/rhhen122/fib

'fib' is a Fibonacci calculator written across multiple languages
https://github.com/rhhen122/fib

brainfuck c cpp docker golang javascript lua php python ruby

Last synced: about 1 year ago
JSON representation

'fib' is a Fibonacci calculator written across multiple languages

Awesome Lists containing this project

README

          

# _☰fib_ ⚑️

## A Fibonacci calculator written in multiple languages to see what out-preforms what.




Copyright
|
License
|
Codeberg
|
Github
|
Fibonacci Sequence Wikipedia
|
Leonardo Fibonacci Wikipedia
|
Who is rhhen122?
|
Web Docs

Special thanks to:

🐳 Docker
|
πŸ‘¨β€πŸ’» Visual Studio Code
|
🐱 Github
|
❄️ Codeberg
|
πŸ’« Debian
|
🌲 Git


For making this project possible!





######

If you are not very technologically sassy then don't worry! We have done all the hard work for you using `Docker`

First install the codebase, then run one of the commands inside of the `fib` dir and boom!

Within seconds your runnning the code on your machine without ever installing any dependencies.

When you run the program you are starting up a tiny linux machine install the dependencies to that and then running it on the machine.


#

### Tutorial.rs
Go into the `Tutorial/tutorial.rs` file and change any of the functions to `0` to run them.
```
docker build -t fib-dock-tut ./Tutorial
docker run fib-dock-tut
```

### How to use

#### Ruby
```
docker pull rokyh/fib-dock
docker run rokyh/fib-dock
```

Or compile the image yourself. Run the following in your terminal:
```
docker build -t fib-dock-rb ./RUBY-Docker
docker run fib-dock-rb
```

This will make a `docker` container and run the script `fib-op.rb`

#### C
Compile from source:
```
docker build -t fib-dock-c ./C-Docker
docker run fib-dock-c
```

#### JS
```
docker build -t fib-dock-js ./JS-Docker
docker run fib-dock-js
```

#### PHP
```
docker build -t fib-dock-php ./PHP-Docker
docker run fib-dock-php
```

#### Rust
```
docker build -t fib-dock-rust ./RUST-Docker
docker run fib-dock-rust
```

#### Java
```
docker build -t fib-dock-java ./JAVA-Docker
docker run fib-dock-java
```

#### Go
```
docker build -t fib-dock-go ./GO-Docker
docker run fib-dock-go
```

#### C++
```
docker build -t fib-dock-cpp ./CPP-Docker
docker run fib-dock-cpp
```

#### Python
```
docker build -t fib-dock-py ./BF-Docker
docker run fib-dock-py
```

### Credits
Max Hendra

##### Support Ukraine! πŸ‡ΊπŸ‡¦