CodeRunner راحت ترین روش ممکن برای نوشتن کد بر روی مک شما می باشد. شما می توانید کد ها را تقریبا در هر زبان برنامه نویسی اجرا کنید ، و از قدرت امکانات این برنامه سبک شگفت زده خواهید شد! ویژگی ها: ویرایش و اجرای AppleScript, C, C,. Version: 2.0.3 I've purchased CodeRunner 1 from Mac App Store years ago, and the developer promised that I can purchase CodeRunner 2 with discount. When I launch CodeRunner 2, it insists that my copy of CodeRunner 1 is invalid (how can it be?) and suggests that I should re-download CodeRunner 1 from MAS.
Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24) GCC 4.2.1 (Apple Inc. Build 5666) (dot 3) on darwin As you see, I have installed Python 3.3 but no matter what I do I can't seem to actually use it in CodeRunner. The abstract code that should be executed every time step. The updateabstractcode method might generate this code dynamically before every run instead.
coderunner provides the following class.
code(source, lang, output, inp, path)#
- Parameters(type) :
- source : The Source Code
- lang : The Programming Language
- output : Expected Output of the Program (optional).
- inp : Standard Input to the program (optional).
- path : specify mode of input. Set this to
False
if you are not using file paths (optional)
Demo:
See demo.py for a more descriptive usage.
Pointers ✏
- In a
Java
program the class name should always beMain
. - CodeRunner supports all languages provided by Judge0. See full list of supported languages here.or you can use
- Languages should be specified as string like 'C++', 'Java' etc.
Coderunner 2 3/4
Methods available in class
code()
.api()#
Coderunner 2 3/8
Since v1.0, you need to provide a API Key & URL for using Judge0 through coderunner.
Here is an example on how to do this.
2. getStatus()#
- List of Statuses :
- In Queue
- Processing
- Accepted
- Wrong Answer
- Time Limit Exceeded
- Compilation Error
- Runtime Error (SIGSEGV)
- Runtime Error (SIGXFSZ)
- Runtime Error (SIGFPE)
- Runtime Error (SIGABRT)
- Runtime Error (NZEC)
- Runtime Error (Other)
- Internal Error
- Exec Format Error
Demo:
3. getError()#
Parameters(type) : None
Return Type :
Description: Returns any error occured during program execution.Demo:
Return Type :
String
Description: Returns any error occured during program execution.Demo:
4. getOutput()#
![Coderunner Coderunner](https://coderunnerapp.com/images/Screenshot_1.jpg)
Parameters(type) : None
Return Type :
Description: Returns the standard output of the program.
Demo:
Return Type :
String
Description: Returns the standard output of the program.
Demo:
5. getMemory()#
Parameters(type) : None
Return Type :
Description: Returns the memory used by the program (in kilobytes).
Demo:
Return Type :
String
Description: Returns the memory used by the program (in kilobytes).
Demo:
6. getTime()#
Parameters(type) :
Return Type :
Description: Returns execution time of the program.
Demo:
None
Return Type :
String
Description: Returns execution time of the program.
Demo:
7. getExitCode()#
Parameters(type) : None
Return Type :
Description: Returns exit code of program.
Demo:
Return Type :
String
Description: Returns exit code of program.
Demo:
8. getSubmissionDate()#
Parameters(type) : None
Return Type :
Description: Returns submission date/time of the program on Judge0's Server.
Demo:
Return Type :
String
Description: Returns submission date/time of the program on Judge0's Server.
Demo:
9. setFlags(options)#
Parameters(type) : Compiler flags (
Return Type :
Description: Options for the compiler (i.e. compiler flags).
Demo:
String
) Return Type :
None
Description: Options for the compiler (i.e. compiler flags).
Demo:
10. setArguments(arguments)#
Parameter Type : Command line arguments (
Return Type :
Description: Command line arguments for the program. Dragon dictate 6 0 5 torrent.
Demo:
String
) Return Type :
None
Description: Command line arguments for the program. Dragon dictate 6 0 5 torrent.
Demo: