Skip to content

Instantly share code, notes, and snippets.

@matjaz
Created August 13, 2012 17:02
Show Gist options
  • Save matjaz/3342528 to your computer and use it in GitHub Desktop.
Save matjaz/3342528 to your computer and use it in GitHub Desktop.
Run coffee script directly without globally installed coffee command
#!/usr/bin/env node
coffee=require('coffee-script');fs=require('fs');coffee.run(fs.readFileSync(__filename, 'utf-8').slice(136, -2));
/*
console.log i for i in [3..1]
console.log 'Lift off!'
*/
@KrofDrakula
Copy link

That's a bit much, ain't it? I mean, there goes your syntax highlighting. :)

@matjaz
Copy link
Author

matjaz commented Aug 23, 2012

Not really. Try in sublime. It works ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment