An implementation of Conway's Game of Life in 140 characters of Ruby.
Created by Simon Ernst (@sier).
| gem 'active_model_serializers' | |
| gem 'airbrake' | |
| gem_group :development do | |
| gem 'rubocop', '~> 1.30', require: false | |
| gem 'brakeman', require: false | |
| gem 'rubocop-rspec', '~> 2.11', require: false | |
| gem 'rubocop-rails', require: false | |
| end |
| - Programming Elixir https://pragprog.com/book/elixir16/programming-elixir-1-6 | |
| - Programming Phoenix https://pragprog.com/book/phoenix14/programming-phoenix-1-4 | |
| - The Little Elixir & OTP Guidebook https://www.manning.com/books/the-little-elixir-and-otp-guidebook | |
| - https://elixirschool.com/en/ | |
| - https://elixir-lang.org/ | |
| - https://www.phoenixframework.org/ | |
| - https://exercism.io/my/tracks/elixir (tem exercicios em elixir e tem mentor que te da feedback, gratuito) | |
| - https://confreaks.tv/videos/elixirconfeu2016-from-a-ruby-on-rails-monolith-to-elixir-and-elm-microservices | |
| - https://confreaks.tv/videos/railsconf2016-activerecord-vs-ecto-a-tale-of-two-orms | |
| - https://confreaks.tv/videos/elixirconf2014-rise-of-the-phoenix-building-an-elixir-web-framework |
| Ruby e Rails | |
| Guias: | |
| http://guides.rubyonrails.org/ | |
| Livros (Free mas vale pagar um café para o autor ;) ): | |
| https://leanpub.com/conhecendo-ruby | |
| Livros (Pagos): | |
| https://leanpub.com/conhecendo-rails |
| require "rails" | |
| require "action_controller/railtie" | |
| class SampleFile < Rails::Application | |
| config.secret_key_base = "pa34u13hsleuowi1aisejkez12u39201pluaep2ejlkwhkj" | |
| routes.append do | |
| root to: 'foo#index' | |
| get 'foo/bar' | |
| end |
| #!/bin/ruby | |
| Position = Struct.new(:x,:y) do | |
| def ==(pos) | |
| x == pos.x && y == pos.y | |
| end | |
| end | |
| class Finder | |
| def self.princess(grid) | |
| edge = grid.length - 1 |
An implementation of Conway's Game of Life in 140 characters of Ruby.
Created by Simon Ernst (@sier).