Skip to content

Instantly share code, notes, and snippets.

@raine
Last active August 29, 2015 14:20
Show Gist options
  • Save raine/ed71ca2b8710e18a1cf3 to your computer and use it in GitHub Desktop.
Save raine/ed71ca2b8710e18a1cf3 to your computer and use it in GitHub Desktop.
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