Giter Club home page Giter Club logo

myctd2's Introduction

This is an exercise for the last two days of this class. We want to do more programming, and we want to review some of the basic concepts we have learned. This exercise reviews:

  • the command line
  • git
  • classes
  • hashes
  • arrays
  • variables
  • conditional statements

I don't have update access for Kristine's git repository, so we will use a new workspace.

Setup instructions

  1. Login to github.com. Create a new repository called myctd2. (You click on the icon in the upper right and go to "my repositories" and then "new").
  2. Login to c9.io. Create a new blank workspace called myctd2.
  3. From the command line in that workspace, type

git clone [email protected]:jrmcgarvey/ctd2

mkdir myctd2

cp -an ctd2 myctd2

cd myctd2/ctd2

git remote add myctd2 [email protected]:<your_git_id>/myctd2

git push myctd2 master

touch myclass.rb

Now run

ruby tester.rb

and follow the instructions until you are able to complete all of the tests. You will have to make changes to myclass.rb.

Now, suppose you don't remember how to create a class or a hash or an array. Look it up on Google! Use search arguments like "ruby create a class".

Once you have it working, type this in the command line

git add -A

git commit -m "Got myclass.rb working"

git push myctd2 master

myctd2's People

Contributors

jrmcgarvey avatar

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.