Compare commits

..

No commits in common. "6615ec4519a1ab2c59a48f2e0c0adaf588e58671" and "7a8309553b8734911487027fae3c2251a7556332" have entirely different histories.

3 changed files with 7 additions and 6 deletions

1
.gitignore vendored
View file

@ -1,4 +1,3 @@
api/api api/api
api/package-lock.json
lxc/i lxc/i
lxc/lockfile lxc/lockfile

View file

@ -1,5 +1,5 @@
#!/usr/bin/bash #!/usr/bin/bash
cd /tmp/$2 cd /tmp/$2
timeout -s KILL 10 gcc -std=c11 -o binary -x c code.code gcc -std=c11 -o binary -x c code.code
timeout -s KILL 3 xargs -a args.args -d '\n' ./binary < stdin.stdin timeout -s KILL 3 xargs -a args.args ./binary < stdin.stdin

View file

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
cp code.code interim.java cd /tmp/$2
timeout -s KILL 10 xargs -a args.args -d '\n' java interim.java < stdin.stdin name=$(grep -Po "(?<=\n|\A)\s*(public\s+)?(class|interface)\s+\K([^\/\\\\\n\s{]+)" code.code)
cp code.code $name.java
javac $name.java
timeout -s KILL 3 xargs -a args.args -d '\n' java $name < stdin.stdin