Giter Site home page Giter Site logo

assignments's Introduction

Each student has their own private GitHub repository at:
https://github.com/iit-cs579/[your-github-id]

This is where you will submit all assignments.

Your repository should already contain starter code for each assignment. This starter code has been pulled from the assignment repository at https://github.com/iit-cs579/assignments.

Throughout the course, I may update the assignments to clarify questions or add content. To ensure you have the latest content, you can run the update.sh, which will fetch and merge the content from the assignments repository.

For each assignment, then, you should do the following:

  1. Run ./update.sh to get the latest starter code.

  2. Do the homework, adding and modifying files in the assignment directory. Commit often!

  3. Before the deadline, push all of your changes to GitHub. E.g.:

cd a0
git add *
git commit -m 'homework completed'
git push
  1. Double-check that you don't have any outstanding changes to commit:
git status
# On branch master
nothing to commit, working directory clean
  1. Double-check that everything works, by cloning your repository into a new directory and executing all tests.
cd 
mkdir tmp
cd tmp
git clone https://github.com/iit-cs579/[your_iit_id]
cd [your_iit_id]/a0
[...run any relevant scripts/tests]
  1. You can also view your code on Github with a web browser to make sure all your code has been submitted.

  2. Assignments contain doctests. You can run these for a file foo.py using python -m doctest foo.py. If all tests pass, you'll see no output. To see output even for passing tests, add a -v flag to the command.

  3. Typically, each assignment contains a number of methods for you to complete. I recommend tackling these one at a time, debugging and testing, and then moving onto the next method. Implementing everything and then running at the end will likely result in many errors that can be difficult to track down. In order to run the doctests from a single function, you can use nose. E.g., to run only the doctests for the get_twitter function in a0.py, you would call:

  • nosetests --with-doctest a0.py:get_twitter
  1. For some assignments, I also include a Log.txt file which contains the expected output when running the assignment's main method (e.g., python a0.py). You should look to make sure your output matches. Occasionally, some deviations are expected, particularly if sets are used, which are unordered.

assignments's People

Contributors

aronwc avatar

Watchers

mixolydian 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.