Skip to content

Instantly share code, notes, and snippets.

Avatar

Matt Glover matt-glover

  • Imperva (Distil Networks pre-acquisition)
  • Washington, DC
View GitHub Profile
View gist:1c2747bc388af052fe6b
### 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:
View generation.diff
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 active_record_master.rb
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