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
| defmodule Dexter do | |
| use Application | |
| @port 7400 | |
| def start(_, port \\ @port) do | |
| import Supervisor.Spec, warn: false | |
| children = [ | |
| worker(Reagent, [Dexter.Server, [port: port]], []) |
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
| describe "Timeouts" do | |
| timeout 0.1 | |
| async "hurr" do | |
| run_async { :ok } | |
| end | |
| async "blah", 4 do | |
| run_async { :ok } | |
| end |
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
| desc 'Build dependencies matching /^opal-/ into .' | |
| task :dependencies do | |
| Opal::DependencyBuilder.new(out: '.').build | |
| end | |
| desc 'Build specified dependencies into .' | |
| task :dependencies do | |
| Opal::DependencyBuilder.new(dependencies: %w[call-me opal-spec], out: '.').build | |
| end |
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
| # even better, imho | |
| class << `Document` | |
| # this goes in the prototype, so it ends up being on `document` too | |
| def root | |
| `return self.documentElement` | |
| end | |
| end | |
| class << `document` |