View active_record_master.rb
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
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 |
View generation.diff
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
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 |
View gist:1c2747bc388af052fe6b
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
### 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: |