Presenting Source Code – using reveal.js – Elixir Modules



Presenting Source Code – using reveal.js – Elixir Modules

0 2


presenting-source-code

Example of presenting source code using reveal.js as described by Damian Conway in Instantly Better Presentations

On Github wsmoak / presenting-source-code

Presenting Source Code

using reveal.js

Created by Wendy Smoak / @wsmoak

Read this first:http://wsmoak.net/2015/09/16/presenting-source-code.html

Elixir Modules

http://elixir-lang.org/getting-started/modules.html

defmodule Math do
  def sum(a, b) do
    a + b
  end
end
            
defmodule Math do
  def sum(a, b) do
    a + b
  end
end
defmodule Math do
  <mark>def sum(a, b) do
    a + b
  end</mark>
end
defmodule Math do
  def sum(a, b) do
    a + b
  endend
defmodule Math do
  def sum(a, b) doa + bendend
defmodule Math do
  def sum(a, b) do
    a + b
  end
end
defmodule Math do
  def sum(a, b) doa + b
  endend
defmodule Math do
  def sum(a, b) do
    a + bend
end

THE END

Presenting Source Code using reveal.js Created by Wendy Smoak / @wsmoak