Last active
August 29, 2015 14:20
-
-
Save raine/ed71ca2b8710e18a1cf3 to your computer and use it in GitHub Desktop.
This file contains 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
require! LiveScript | |
require! vm | |
code = process.argv.2 | |
|> LiveScript.compile _, {+bare, -header} | |
sandbox = {} | |
sandbox <<< require 'ramda' | |
ctx = vm.create-context sandbox | |
val = vm.run-in-context code, ctx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment