Skip to content

Instantly share code, notes, and snippets.

@allomov
Last active July 29, 2018 19:53
Show Gist options
  • Save allomov/3d3882a2b506a19a7cd32cc0d4b915ce to your computer and use it in GitHub Desktop.
Save allomov/3d3882a2b506a19a7cd32cc0d4b915ce to your computer and use it in GitHub Desktop.
rubizza-camp rails introduction
require "faker"
puts (1..13).map { |i| {name: Faker::RickAndMorty.character, bio: Faker::RickAndMorty.quote, number: rand(1000..9999), is_alive: [true, false].sample} }.reduce({}) {|res, obj| res[obj[:name]] = obj; res }.to_yaml
---
Tiny Rick:
:last_name: Tiny Rick
:bio: He's not a hot girl. He can't just bail on his life and set up shop in someone
else's.
:number: 4356
:is_alive: false
Baby Legs:
:last_name: Baby Legs
:bio: Little tip, Morty. Never clean DNA vials with your spit.
:number: 7707
:is_alive: true
Mr. Meeseeks:
:last_name: Mr. Meeseeks
:bio: Ohh yea, you gotta get schwifty.
:number: 7438
:is_alive: false
Revolio 'Gearhead' Clockberg, Jr.:
:last_name: Revolio 'Gearhead' Clockberg, Jr.
:bio: 'What about the reality where Hitler cured cancer, Morty? The answer is: Don''t
think about it.'
:number: 2066
:is_alive: false
Tophat Jones:
:last_name: Tophat Jones
:bio: Little tip, Morty. Never clean DNA vials with your spit.
:number: 1802
:is_alive: false
King Jellybean:
:last_name: King Jellybean
:bio: Weddings are basically funerals with cake.
:number: 6333
:is_alive: false
Beth's Mytholog:
:last_name: Beth's Mytholog
:bio: Ohh yea, you gotta get schwifty.
:number: 4389
:is_alive: true
Tammy Gueterman:
:last_name: Tammy Gueterman
:bio: Let me out, what you see is not the same person as me. My life's a lie. I'm
not who you're looking. Let me out. Set me free. I'm really old. This isn't me.
My real body is slowly dieing in a vat. Is anybody listening? Can anyone understand?
Stop looking at me like that and actually help me. Help me. Help me I'm gunna
die.
:number: 1270
:is_alive: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment