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
defmodule Tetris.Core.Board do | |
alias Tetris.Core.Shape | |
@default_width 40 | |
@default_height 50 | |
defstruct ~w( | |
tiles | |
seq_map |
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
defmodule Ecom.Cat do | |
end |
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
[] |
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
# This is a comment | |
# The first thing in any language | |
next_integer_after = fn x -> x+1 | |
end | |
# This is an annoymous function. | |
# called inside function as next_integer_after(3) | |
defmodule ModuleName do |
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
defmodule Setup do | |
def process vehicle do | |
root_path = fn -> | |
Car.folder_path vehicle | |
end | |
generate_labels root_path.(), vehicle | |
create_sheets root_path.(), vehicle.sheets | |
end | |