Embed all your languages, this file can be interpreted or compiled in 7 different coding languages:
$ php poly.sh.pl.php.tcl.cpp.bf.py.c.lhs.txt #I'm a PHP script $ python poly.sh.pl.php.tcl.cpp.bf.py.c.lhs.txt I'm a Python program. $ perl poly.sh.pl.php.tcl.cpp.bf.py.c.lhs.txt I'm a Perl program. $ tclsh poly.sh.pl.php.tcl.cpp.bf.py.c.lhs.txt I'm a tcl script. $ sh poly.sh.pl.php.tcl.cpp.bf.py.c.lhs.txt I'm a sh script.
Rename file to compile in C/C++:
$ gcc p.c -o c;./c I'm a C program (C89 with// comments, trigraphs disabled). $ g++ p.c -o cp;./cp I'm a C++ program, trigraphs disabled.
http://blog.sykosopp.com/2006/02/26/one-file-to-ru le-them-all/
// comments, trigraphs disabled).
Embed all your languages, this file can be interpreted or compiled in 7 different coding languages:
$ php poly.sh.pl.php.tcl.cpp.bf.py.c.lhs.txt
#I'm a PHP script
$ python poly.sh.pl.php.tcl.cpp.bf.py.c.lhs.txt
I'm a Python program.
$ perl poly.sh.pl.php.tcl.cpp.bf.py.c.lhs.txt
I'm a Perl program.
$ tclsh poly.sh.pl.php.tcl.cpp.bf.py.c.lhs.txt
I'm a tcl script.
$ sh poly.sh.pl.php.tcl.cpp.bf.py.c.lhs.txt
I'm a sh script.
Rename file to compile in C/C++:
$ gcc p.c -o c;./c
I'm a C program (C89 with
$ g++ p.c -o cp;./cp
I'm a C++ program, trigraphs disabled.
Very nice demo of iAlertU:
http://www.youtube.com/watch?v=KkAtRfA1UXc
So now we can fire missles at airplanes for fun and watch the missles explode in mid-air by the laser!