Judge0 API
ace
Judge0 API | ace | |
---|---|---|
10 | 34 | |
2,126 | 26,416 | |
3.4% | 0.2% | |
7.3 | 9.3 | |
6 days ago | 2 days ago | |
HTML | JavaScript | |
GNU General Public License v3.0 only | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Judge0 API
-
Why would you use the code interpreter?
There are services like Judge0 which you can use to execute the code in a sandbox. Just send a code as a string and get a result back. You can either use their cloud offering or deploy the container yourself (it is opensource). https://github.com/judge0/judge0
-
Judge0 URL is not accessible
I'm trying to run a local version of the Judge0 compiler, but I can't seem to access it.
-
Storing untrusted client-provided code in a database
I have a front-end app which exposes a code editor where the user can provide some code and it will be compiled and executed using judge0 (so not on my server). I would like to be able to save the code created by a user, but I'm not sure of the best route to do this. My initial thought was to save the code as a string in a database, passing through my back-end which could potentially have some sanitizing methods to try and minimize any danger with this. However, I'm not sure how practical/feasible it is to try and sanitize code - has anyone attempted to do this previously or have experience in this domain?
- Built a website for practicing Python
-
Any idea on how to built a code compilation system that can be deployed online or if there exists one already that can be used.
You can deploy Judge0 Extra CE on your own servers for free. Here are the release notes that include the deployment procedure.
- Online compilers/interpretters for (python, go, etc)
-
Creating(or importing) a Code Sandbox or an online IDE to be used in a Django website.
https://judge0.com/ to run the code, you can can host it on your server for free or use their api.
- Gitlab servers are being exploited in DDoS attacks in excess of 1 Tbps
-
run code in django
A signal gets called which gets sent over Django Channels (but you can probably use an mq or something for this) which notifies a microservice that is responsible for sending and receiving submissions to an instance of https://judge0.com/
-
Let’s Deploy our Online Code Executor in Google Cloud
wget https://github.com/judge0/judge0/releases/download/v1.12.0/judge0-v1.12.0.zip unzip judge0-v1.12.0.zip
ace
-
Show HN: A note-keeping system on top of Fossil SCM
I used a note system built on top of Fossil as my primary system for quite a while. Here are the details in case anyone is interested.
Fossil allows CGI extensions[1]. There's a database for tickets, but that's just a regular SQLite table that you can use to store anything you want, and it's version controlled and queryable. I stored the notes plus metadata in the tickets database. The CGI returned HTML with the Ace editor for creating/editing notes.[2] Notes were stored using the command line.[3] I needed to add the web server user to the sudoers file to access the Fossil binary.
There were two reasons to use Fossil for this. The biggest was that it handled authentication. The second is that I had a version controlled database to do all the work for me.
I think I eventually moved away from it because I prefer working locally. The "transition" was dumping the data out of the database and into markdown files.
[1] https://fossil-scm.org/home/doc/trunk/www/serverext.wiki
[2] https://ace.c9.io/
[3] https://fossil-scm.org/home/help?cmd=ticket
-
browser based editor?
Ace editor -> https://ace.c9.io/
-
Writing a (simple) code editor for the web?
Hey there! Thanks for reaching out. Writing a code editor with syntax highlighting in a browser can be a little tricky, but it's definitely doable. One resource that might be helpful is the Ace Editor library (https://ace.c9.io/). It's a lightweight but powerful editor that includes syntax highlighting for a huge range of languages. You could also check out CodeMirror (https://codemirror.net/), which is another popular library for building web-based code editors. Good luck, and let us know how it goes!
-
Keyboard shortcuts for the editor?
neocities seems to use the ace editor, and you can view its default keybinds here: https://github.com/ajaxorg/ace/wiki/Default-Keyboard-Shortcuts
-
The ShnooTalk programming language
The frontend uses the ace editor for syntax highlighting and then sends all the "text" you have typed to a python backend. The backend then writes all the text to a temporary directory and calls the compiler using subprocess (something similar to os.system).
-
MDSlides - Simple markdown presentation tool
It is built using Reveal.js and Ace, and is a simple markdown presentation tool right in the browser.
- Ace – The High Performance Code Editor for the Web
-
Enhance
https://github.com/ajaxorg/ace
It's a pretty complex JavaScript application but you can development and even run tests locally without ever needing to "build". I'm building a JavaScript-based text editor, too, and it also uses Makefile and you can just run a static file server such as Python SimpleHTTPServer to host all the files in the directory. I still have and componentized HTML/CSS, separated JS files.
-
Frontend library for syntax highlighting / validation of uBlock rules
Thanks for the suggestion! Although Ace is not the most popular kid in the block, it is still maintained. It does support tmLanguage and could be used for a proof-of-concept editor!
-
Edit code from browser
For the code editing you can use Ace.
What are some alternatives?
Code-Server - VS Code in the browser
Monaco Editor - A browser based code editor
Zalenium - A flexible and scalable container based Selenium Grid with video recording, live preview, basic auth & dashboard.
CodeMirror - In-browser code editor (version 5, legacy)
Codiad - Web Based, Cloud IDE
TinyMCE - The world's #1 JavaScript library for rich text editing. Available for React, Vue and Angular
Koding
quill - Quill is a modern WYSIWYG editor built for compatibility and extensibility.
RequestBin
PrismJS - Lightweight, robust, elegant syntax highlighting.
RStudio Server - RStudio is an integrated development environment (IDE) for R
Draft.js - A React framework for building text editors.