Giter Club home page Giter Club logo

ruby-koans's Introduction

Ruby koans

The Koans walk you along the path to enlightenment in order to learn Ruby. The goal is to learn the Ruby language, syntax, structure, and some common functions and libraries. You will also learn about ruby culture.

http://rubykoans.com/

Usage of the docker container

To use this docker container to run Ruby koans follow these steps:

Ensure you have docker and docker-compose installed

  • Install docker - in Debian/Ubuntu run curl -sSL https://get.docker.com/ubuntu/ | sudo sh
  • Grant non-root access: sudo gpasswd -a ${USER} docker && sudo service docker restart
  • after granting root access, Logout and then Log on Again. Note: Maybe reboot will be required
  • Install docker-compose - in Debian/Ubuntu run:
curl -L https://github.com/docker/compose/releases/download/1.4.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

Clone this repo:

git clone https://github.com/georgeyord/ruby-koans.git

Run "path_to_enlightenment.rb"

docker-compose run ruby ruby ./path_to_enlightenment.rb

OR

docker-compose run ruby 
[inside docker container] ruby ./path_to_enlightenment.rb

Using the second otpion you get inside docker contianer and then you run the ruby commands

Change the code to progress in Koans Edit the files placed in data/code/koans

then, rerun the docker-compose command to see what you achieved.

Other goodies

Start an interactive ruby shell (irb)

docker-compose run ruby irb

Run a custom file you added in data/code

docker-compose run ruby -r ../[custom file]

ruby-koans's People

Contributors

georgeyord avatar

Watchers

 avatar James Cloos avatar

Forkers

garrinmf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.