Giter Club home page Giter Club logo

aoj's Introduction

AOJ

AOJ is a command-line tool for AOJ(Aizu Online Judge). You can submit your source to AOJ and check the result of judgement without opening browser nor copy & paste.

This program is forked from aizuzia's AOJToolkit.

Installation

Please make sure that Ruby (version 2.0 or later) is installed.

You can install AOJ via RubyGems.org

$ gem install aoj

Usage

Problem ID and Language are auto-detected by filename. You should make your source file be like [ProblemID].(cpp|rb|...).

Submit simply

$ aoj submit 0001.cpp

Problem ID and Language can be manually specified

$ aoj submit mysource.cpp -p 0001 -l cpp11

Tweet result (only when accepted)

$ aoj submit 0001.cpp -t

List available languages

$ aoj lang
List available languages:
  c, cpp, java, cpp11, csharp, d, ruby, python, python3, php, js

Auto-detect extensions:
  [ext]     [lang]
  .c        c
  .cpp      cpp
  .cc       cpp
  .C        cpp
  .java     java
  .rb       ruby
  .cs       csharp
  .d        d
  .py       python
  .php      php
  .js       javascript

You can check all other commands and options by typing aoj and enter.

Configuration

AOJ supports interactive configuration. Your account information once used will be stored at your home directory ~/.aojrc.

If you need to use an HTTP proxy to access the Internet, export the HTTP_PROXY or http_proxy environment variable: export $HTTP_PROXY="http://user:password@proxy:8080".

AOJ also supports some extra configurations.

Custom mapping between file extensions and languages

To use custom mapping, please edit ~/.aojrc directly.

For example:

extname:
  ".py": python3
  ".cpp": cpp11

which means, hoge.py file will be submitted as Python3 and hoge.cpp be C++11.

Contributing

  1. Fork it ( http://github.com/na-o-ys/aoj/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

aoj's People

Contributors

na-o-ys avatar unsk avatar

Stargazers

Kotaro Inoue avatar 彭兆卿 avatar Ryutaro Yamada avatar Kenji Doi avatar Katsuyuki Tateishi avatar Tsunemichi Harada avatar imoyoukan avatar S. Suzuki avatar bnn avatar Old account avatar

Watchers

 avatar  avatar

aoj's Issues

Setting up credentials interactively

When first time we use the program, it should be in interactive mode to get login credentials (username and password).

$ aoj-submit
Put your AOJ username: xxx
Put your AOJ password: ***
Do you want to save the credentials to ~/.aoj ?[yN]

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.