Created
October 2, 2014 20:05
-
-
Save reklis/6694ad5fb01991a79a1a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
make clean all | |
echo "ruby\t" $(ruby test.rb) | |
echo "python\t" $(python test.py) | |
echo "node\t" $(node test.js) | |
echo "java\t" $(java test) | |
echo "c\t" $(./test.o) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: test.class test.o | |
test.class: test.java | |
javac test.java | |
test.o: test.c | |
clang test.c -o test.o | |
clean: | |
rm test.class | |
rm test.o | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class test { | |
public static void main(String[] argv) { | |
double nine = 9.0d; | |
double pointOhOhOne = 0.001d; | |
double result = nine * pointOhOhOne; | |
System.out.println(result); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var nine = 9.0; | |
var pointOhOhOne = 0.001; | |
var result = nine * pointOhOhOne; | |
console.log(result); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
nine = 9.0 | |
pointOhOhOne = 0.001 | |
result = nine * pointOhOhOne | |
print result |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
nine = 9.0 | |
pointOhOhOne = 0.001 | |
result = nine * pointOhOhOne | |
print result | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment