-
Notifications
You must be signed in to change notification settings - Fork 0
/
ideone.py
77 lines (75 loc) · 1.31 KB
/
ideone.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
from ideone import Ideone
import sys
if len(sys.argv) < 2:
print '''[+] USAGE: python2 ideone.py <language>
[+]Languages:
C++14
Pascal
Perl
Python
Fortran
Whitespace
Ada
Ocaml
Intercal
Java
C
Brainf**k
Assembler
CLIPS
Prolog
Icon
Ruby
Pike
Haskell
Pascal
Smalltalk
Nice
Lua
C#
Bash
PHP
Nemerle
Common Lisp
Scheme
C99 strict
JavaScript
Erlang
Tcl
Scala
SQL
Objective-C
Assembler
Perl 6
Java7
Text
VB.NET
D
AWK gawk-3.1.6
AWK mawk-1.3.3
COBOL 85
Forth
Prolog
bc
Clojure
JavaScript
Go
Unlambda
Python 3
R
COBOL
Oz
Groovy
Nimrod
Factor
F#
Falcon
'''
sys.exit(1)
lang = sys.argv[1]
print "Paste: and CTRL+D to End the paste..."
paste = sys.stdin.read()
i = Ideone('username', 'APIKey')
res = i.create_submission(paste, lang)
link = res['link']
print "http://www.ideone.com/" + link