This is a set of different examples written in different languages. The purpose is to improve knowledge of different languages and algorithms.
Run file:
octave file_name.m
or file as executable:
./file_name.m
- Go to the source directory.
- Compile source via GNU Make by running command
make
- Run program:
./program_name
- Clean directory (optionally):
make clean
Run file:
python3 file_name.py
- Install sbt.
- Go to the project directory.
- Run:
sbt run
Run file:
ruby file_name.rb
Run as script:
runghc file_name.hs
or
- Install Cabal.
- Go to the project directory.
- Run:
cabal configure
cabal build
./dist/build/project_name/program_name
Run file:
lua file_name.lua
- Install Leiningen.
- Go to the project directory.
- Run:
lein run
Run file:
perl file_name.pl
Run file:
go run file_name.go