Code Monkey home page Code Monkey logo

jutge-enviroment's Introduction

Jutge Enviroment Scripts

This code aims at helping users of jutge.org organize and verify their code.

Features

Automatically creates PN folders

When installing, this code creates a folder for every part of your course and puts useful scripts in those folders.

Automatically creates problem folders

Inside a Part folder, the new.sh can be used to quickly create a folder for a jutge.org problem. It also downloads a pdf explaining the problem and all of the public tests in the ./PN/PXXXXX/samples directory. Moreover it creates a check-samples.sh that when executed checks if the compiled code passes those tests.

Git

You can configure the jutge enviroment script so it automatically inits git in every problem's repository for version control.

Exports

Puts the most recent main.cpp file to have passed the check-samples.sh into the main directory with the name export.cpp to easily upload it to jutge.org

Settings Manager

Run bash settings.sh in the main directory to open the setting manager script.

Requirements

To properly run the scripts one should have installed

  • git
  • wget
  • unzip (most linux distros have them by default, if not you can very easily google how to install them or check if you have them)

Installation

1- Clone Repository

Clone this repository into your computer by doing git clone https://github.com/wamuM/jutge-enviroment <directory> (where directory is where you want everything to be, for instance PRO1)

2- Run install.sh

cd <directory> into the clonned repository and execute install.sh by doing bash install.sh

Updating

1- Clone Updated Repository

Clone this repository into your computer (not the same directory as the not updated one) by doing git clone https://github.com/wamuM/jutge-enviroment <directory> (where directory is where you want everything to be for instance UPDATE_PRO1)

2 - Run update.sh

cd <directory> into the clonned repository and execute install.sh by doing bash update.sh

jutge-enviroment's People

Contributors

wamum avatar

Watchers

 avatar

jutge-enviroment's Issues

Missleading instructions in new.sh

The new.sh script tells you to input a "valid jutge.org problem code" (RegEx: /[A-Z]\d{5}_\w\w/, i.e P90811_en) but provides "P92613" as an example instead of "P92613_en".

Default

install.sh has "export" set to No as default even though Yes is presented as the default.
This was meant to be fixed in the latest commit 5bdf841 as the commit message indicates but it has not been fixed.

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.