Try it on: http://dev.covariant.cn/ or WeChat Miniprogram
- Prepare: debian based linux, apache2 and csbuild requirements
- Clone this repository into your system
- Copy install.sh to some place you like
- Modify the
install_homesettings ininstall.shto where your local repo placed. - Setup crontab to call install script automatically.
POST following contents to server, and it will return the contents with stdout:
{
"code": "<base64-of-code>",
"stdin": "<base64-of-stdin>",
}
Our Public Server:
http://dev.covariant.cn/cgi/cs-online (unencrypted)
https://dev.covariant.cn/cgi/cs-online (encrypted)
postData = {
code: window.btoa("<code-here>"),
stdin: window.btoa("<stdin-here>")
}
$.ajax({
type: "post",
url: "http://dev.covariant.cn/cgi/cs-online",
data: JSON.stringify(postData),
async: true,
success: function (data) {
// Your code here
},
error: function (data) {
// Your code here
}
})