Skip to content

Submit random menu project #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions adjectives.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
Hot
Cold
Room-Temperature
Deconstructed
Asian Fusion
Thai
French
Korean
Mexican
Japanese
Malaysian
New York-Style
Chicago-Style
Philadelphia-Style
Barbecue
Marinated
Portuguese
Upside-Down
Seared
Deep-Fried
Tempura
Frozen
Organic
Imported
Well-Done
Rare
Raw
Miniature
Huge
Chicken-Fried
Cold-Pressed
Creme de la
Inside-Out
Traditional
Reheated
Braised
Soft
Hard
Ancient
Original
Plain
Probiotic
Spicy
Vegan
Gluten-Free
Paleo
Vegetarian
Keto
Cheesy
Frosted
Glazed
Crispy
Al Dente
Ground
Minced
Creamy
66 changes: 66 additions & 0 deletions foods.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
Tuna
Tilapia
Salmon
Shrimp
Lobster
Steak
Chicken
Pork
Bacon
Lamb
Waffles
Pancakes
Hamburger
Cheeseburger
Hot Dog
Sausage
Schnitzel
Curry
Ramen
Noodles
Pho
Ratatouille
Cabbage
Poke
Bratwurst
Pulled Pork
Brussels Sprouts
Breadsticks
Lasagna
Clams
Duck
Veal
Tofu
Mushrooms
Garden Vegetables
Squash
Mozzarella Sticks
Cereal
Ice Cream
Water
Buffalo
Rabbit
Chicken Wings
Beef Tongue
Pork Belly
Chicken Nuggets
Oxtail
Carrots
Baked Potato
Mashed Potatoes
Sweet Potato
French Fries
Tomatoes
Lobster
Crab
Sea Urchin
Eel
Fugu
Mixed Seafood
Eggplant
Creme
Spam
Wumpa Fruit
Flank Steak
Bulgogi
Kimchi
19 changes: 19 additions & 0 deletions random_menu.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
adjective = File.open("adjectives.txt").read.split("\n").shuffle!
food = File.open("foods.txt").read.split("\n").shuffle!
twist = File.open("twists.txt").read.split("\n").shuffle!
menu_length = ARGV[0].to_i

shortest_list = [adjective.length, food.length, twist.length].min

if menu_length > shortest_list
menu_length = shortest_list
puts "\n(Due to budget constraints, menu has been shortened to #{menu_length} items. We apologize for the inconvenience.)"
end

puts "\nLe Menu:\n\n"

menu_length.times do |i|
puts "#{i+1}. #{adjective.pop} #{food.pop} #{twist.pop}\n"
end

puts ""
57 changes: 57 additions & 0 deletions twists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
with Avocado
Smoothie
Sandwich
Soup
with Beans
with Rice
with Side Salad
Combo
Kebab
Sushi
Kimbap
Musubi
Fillet
a la Mode
on Ice
on a bed of Romaine Lettuce
Juice
Salad
Bowl
Martini
in a Mason Jar
with Fries
without Fries
in a Box
Stir Fry
Fried Rice
Buns
on a Bagel
Pizza
Flatbread
Milkshake
and a Shot of Jameson
Dumplings
To Go
on a Sesame Seed Bun
Loaf
con Salsa Verde
du Jour
on Toast
in a Bread Bowl
in a Mug
a la Edgar
with Salt and Pepper
and Guac
Bites
IPA
with Mayo
with Cheese
with Sprinkles
with Chips
Sashimi
Broth
Reduction
Pasta
Fettuccine
Alfredo
in Cream Sauce