o3bvv / examples-etc

A set of different examples written in different languages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

This is a set of different examples written in different languages. The purpose is to improve knowledge of different languages and algorithms.

Used languages

Running examples

GNU Octave

Run file:

octave file_name.m

or file as executable:

./file_name.m

GNU C

  1. Go to the source directory.
  2. Compile source via GNU Make by running command

make

  1. Run program:

./program_name

  1. Clean directory (optionally):

make clean

Python 3

Run file:

python3 file_name.py

Scala

  1. Install sbt.
  2. Go to the project directory.
  3. Run:

sbt run

Ruby

Run file:

ruby file_name.rb

Haskell

Run as script:

runghc file_name.hs

or

  1. Install Cabal.
  2. Go to the project directory.
  3. Run:

cabal configure

cabal build

./dist/build/project_name/program_name

Lua

Run file:

lua file_name.lua

Clojure

  1. Install Leiningen.
  2. Go to the project directory.
  3. Run:

lein run

Perl

Run file:

perl file_name.pl

Go

Run file:

go run file_name.go

About

A set of different examples written in different languages.


Languages

Language:Objective-C 42.8%Language:Clojure 12.9%Language:Haskell 8.3%Language:Scala 8.1%Language:C 5.6%Language:Go 5.5%Language:Python 4.9%Language:Perl 4.8%Language:Ruby 3.7%Language:Lua 3.5%