Skip to content

Instantly share code, notes, and snippets.

View matt-glover's full-sized avatar

Matt Glover matt-glover

  • Kevala
  • Washington, DC
View GitHub Profile
unless File.exist?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails'
gem 'arel', github: 'rails/arel'
gem 'sqlite3'
GEMFILE
system 'bundle'
end
diff --git a/generation.rb b/generation.rb
index c191dcd..238f8e3 100644
--- a/generation.rb
+++ b/generation.rb
@@ -21,9 +21,9 @@ class Animal
end
def mate(other)
- @genes = (@genes[0...16] + other.genes[0...16])
- mutate
### Keybase proof
I hereby claim:
* I am matt-glover on github.
* I am mpglover (https://keybase.io/mpglover) on keybase.
* I have a public key whose fingerprint is 5412 B114 82B5 990D 7C52 2190 6ED7 C4D3 9EF4 6983
To claim this, I am signing this object: