Created
November 14, 2010 13:31
-
-
Save StanAngeloff/676155 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
| % coffee test.py | |
| Hello | |
| % |
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
| % python test.py | |
| % |
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 | |
| code = """ | |
| console.log 'Hello' | |
| """ | |
| try: | |
| require('./lib/coffee-script').eval(code, { fileName: '__stdin' }) | |
| except: | |
| 'pass' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment