Skip to content

Instantly share code, notes, and snippets.

@lessandro
Last active December 19, 2015 03:38
Show Gist options
  • Save lessandro/5891349 to your computer and use it in GitHub Desktop.
Save lessandro/5891349 to your computer and use it in GitHub Desktop.
➜ ~ wget https://raw.github.com/mauke/poly.poly/master/poly.poly
➜ ~ zsh poly.poly
I'm a zsh script.
➜ ~ bash poly.poly
I'm a bash script.
➜ ~ python poly.poly
I'm a Python program (CPython 2.7.5).
➜ ~ ruby poly.poly
I'm a Ruby program.
➜ ~ make -f poly.poly
I'm a Makefile.
➜ ~ perl poly.poly
I'm a Perl program.
➜ ~ sh poly.poly
I'm a bash script.
➜ ~ runhaskell poly.poly
poly.poly:1:2: parse error on input `#'
➜ ~ mv poly.poly poly.lhs
➜ ~ runhaskell poly.lhs
poly.lhs:68:27: parse error on input `:'
➜ ~ mv poly.lhs poly.c
➜ ~ gcc poly.c
poly.c:37:20: warning: trigraph ??! ignored, use -trigraphs to enable
➜ ~ ./a.out
I'm a C program (C89 with // comments, trigraphs disabled).
➜ ~ mv poly.c poly.cpp
➜ ~ g++ poly.cpp
poly.cpp:37:20: warning: trigraph ??! ignored, use -trigraphs to enable
➜ ~ ./a.out
I'm a C++ program (trigraphs disabled).
➜ ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment