Giter Club home page Giter Club logo

eden_clone_codes's Introduction

This repo will NOT be updated because eden has changed to Matrix.

Maybe you can try this.


eden_clone_codes

A python script to "clone" codes in eden.

1.Why?

I use eden and I like this nice OJ website, though it has something annoying yet...So, that's why I write this script to help me clone the code files. Our TAs usually tell us that we should compile and debug our code in local compiler and debugger, for which we have to copy the code to the local folder. But when we meet an assignment that has many files(maybe more than 10 files!), we have to copy them one by one. Why not use clone like git's git clone?

2.How to use it?

Just clone this repository, or only copy the .py file in it. Put the .py file to the folder you want to set your code. Then run it! In Windows, maybe you can double-click it and it runs itself or you can double-click the "get_codes.exe" in "exe" folder. In Linux, you may cd to your folder and python get_codes.py.

Then, input your username, password and the assignment's id (please get it from the browser's url).

For example, if you want to clone Digraph(DS)(15C++), whose url is http://eden.sysu.edu.cn/m/ass/6183/, then you should input "6183" (no quote).

Then you can input a folder name, and the program will clone the files there.

Now you can save your username and password in a file, so that you can skip the input next time.

3.Update Notes

0.Able to save username and password to skip inputting them next time. (Thanks for mgsweet's suggestion)

1.Able to be used on Windows even without Python installed. (Thanks for iebb's suggestion)

2.Removed some useless comment.

3.Now the program won't print your username and your password after saving them. (Thanks for Mensu's suggestion)

4.Able to be used by Python3. (Thanks for iebb's code)

4.TODO

It is very imperfect that maybe anyone can contribute to this lovely tool. So, feel FREE to make Pull Request. I will be very grateful and accept your hard work (if the code work well).

  • Maybe we can implement the function "put the code in another path".

  • Create Makefile automatically.

  • Download multiple assignments at once.

  • To be honest.....I know my code is messy or even unreadable, I hope I will have time to add some comment and make it better. Also, if you can understand my code, you can add comments on it!


THX for all the contributors!

And THX for reading this README....

eden_clone_codes's People

Contributors

daddytrap avatar iebb avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar Jianjie(JJ) Luo avatar

eden_clone_codes's Issues

some problems

Every time i need to input my username and password , it is not convenient .
Also it is better to put all the file in one document

Some suggestions

I created a node.js version - https://github.com/iebb/eden-asgn-batchdl-nodejs
Some suggestions:

  • Generate Dev-C++ Project File .dev or Makefile for Linux systems
  • Publish executable for those doesn't have Python installed or using Python 3 (py2exe is a good choice)
  • Listing assignments currently available
  • Allow downloading multiple assignments at once

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.