Last active
August 29, 2015 14:02
-
-
Save aostrega/6aad61bdf2fcb79a7b0a to your computer and use it in GitHub Desktop.
Requiring MRI stdlib in Opal
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
Run `rackup` then visit http://localhost:9292/stuff.js. |
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
require 'opal' | |
assets = Opal::Environment.new | |
assets.append_path('.') | |
$LOAD_PATH.each { |p| assets.append_path(p) } | |
run assets |
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
require 'matrix' # Needs Opal >v0.6.2 to parse. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment