horta-hell icon indicating copy to clipboard operation
horta-hell copied to clipboard

Add melpon/wandbox API access

Open ForNeVeR opened this issue 10 years ago • 8 comments
trafficstars

See documentation: https://github.com/melpon/wandbox/blob/master/kennel2/API.rst

Command usage example:

<parohod> $run haskell main = putStrLn "you dick"
<horta hell> parohod: you dick

Also consider these features:

  1. File templates for some languages. For example, $run java 2+2 could be extracted to class Program { static void main() { System.out.println(2+2); } }.
  2. Auto loading code from paste. For example, $run url java http://hastebin.com/12345 could load the code from the url and paste it to wandbox.

ForNeVeR avatar Oct 26 '15 11:10 ForNeVeR

Suggestion for udner item 2: language must go first because URL may be too long.

Newlifer avatar Oct 26 '15 11:10 Newlifer

Could you edit the initial post? That's nice idea, I like it.

ForNeVeR avatar Oct 26 '15 11:10 ForNeVeR

Nope, i can't...

Newlifer avatar Oct 26 '15 11:10 Newlifer

Ok, I've edited it.

ForNeVeR avatar Oct 26 '15 11:10 ForNeVeR

I approve this shit! :+1:

rexim avatar Oct 26 '15 11:10 rexim

And about item (1). Which limitations would be for samples? For example, can user use boost in c++ code sample?

Newlifer avatar Oct 26 '15 12:10 Newlifer

In additional, standard modules/headers?

Newlifer avatar Oct 26 '15 12:10 Newlifer

I should say we have to import all basic... prelude thigs.

Newlifer avatar Oct 26 '15 12:10 Newlifer