Skip to content

Instantly share code, notes, and snippets.

@lnaia
Last active August 29, 2015 14:03
Show Gist options
  • Save lnaia/962c87aae5b157fe27d1 to your computer and use it in GitHub Desktop.
Save lnaia/962c87aae5b157fe27d1 to your computer and use it in GitHub Desktop.
Is the food healthy ? Just having fun with random menus from nearby places
SOUP OF THE DAY...............................................450
Served with wholemeal bread
FRESH CUT CHUNKY CHIPS ...................................450
With sweet chilli mayo
FRIED CHICKEN WRAP .........................................700
With mixed leaves, tomato and chilli mayo
FALAFEL WRAP ....................................................700
Spicy chickpea patty with lettuce, tomato, red onion and garlic mayo (v)
HAM AND CHEESE TOASTIE ..................................500
On buttered toast with tomato and red onion, “no messin”
ROAST TURKEY AND CRISPY BACON .....................775
With stuffing, Brie, spicy cranberry sauce and mayo
BREWDOCK CLUB SANDWICH ..............................800
Bacon, fried egg, chips, grilled chicken, lettuce, tomato and mayo
BLT ...................................................................750
Streaky bacon, shredded lettuce and beef tomato
PULLED BARBEQUE PORK WRAP .............................800
Slow cooked pork belly with home made coleslaw
PLOUGHMAN’S OPEN SANDWICH .........................800
Wholemeal brown bread, baked ham, grated Dubliner
cheese and Branston pickle and pickled cucumber
HOMEMADE CHOCOLATE BROWNIE ......................550
Served with ice cream
APPLE AND MIXED BERRY CRUMBLE ........................550
Served with ice cream
LEMON POSSET ..................................................550
With fresh whipped cream
CLASSIC CAESAR SALAD .....................................850
With cos lettuce, grated Parmesan and garlic croutons
Add crispy bacon or grilled chicken €250
CHICKEN TIKKA MASSALA .................................. 1050
With basmati rice and mint raita
SHEPHERDS PIE ................................................. 1150
Topped with a creamy mash and grilled cheddar crust
BEER BATTERED FISH AND CHIPS ......................... 1400
With homemade pea puree and tartar sauce
CHICKEN AND BACON CARBONARA ................... 1250
With garlic bread and Parmesan
THE BREW DOCK 100% IRISH STEAK BURGER .........1250
With tomato relish, lettuce, tomato and mayo,
served with chunky chips
FALAFEL BURGER ............................................... 1150
Spicy chickpea patty with lettuce, tomato,
red onion and garlic mayo, served with
chunky chips (v)
PIRI-PIRI CHICKEN BURGER .................................. 1200
With jalapeño mayo, lettuce, tomato
and chunky chips
DUBLIN CODDLE ............................................... 1000
Traditional dublin dish with the boss man’s
own recipe
ROAST BEEF SANDWICH ......................................850
With boozy onion gravy on toasted multigrain bread
#!/usr/bin/env ruby
require 'rubygems'
require 'json'
file = File.open("no_good_food.json", "rb")
contents = file.read
no_good_food = JSON.parse(contents)
food_menu = ARGV[0]
total_menu_lines = 0
total_bad_food_lines = 0
if food_menu.length > 1
File.readlines(food_menu).each do |menu_line|
menu_line = menu_line.downcase
no_good_food.each do |food |
if /#{food}/ =~ menu_line
# care about it!
#............._@@@__
#.... ___//___?____\________
#..../--o-----CARE-POLICE----@}
#.....`==={@}=====+===={@}--'
total_bad_food_lines +=1
end
end
total_menu_lines +=1
end
end
relation = total_bad_food_lines * 100 / total_menu_lines
relation = relation.round(2)
puts "Total menu lines: #{total_menu_lines}"
puts "Total bad menu food lines: #{total_bad_food_lines}"
puts "Relation: #{relation}%\n"
[
"fries",
"burger",
"burgers",
"hamburger",
"hamburgers",
"ciabatta",
"pizza",
"chips",
"potato",
"bun",
"sandwich",
"sandwichs",
"taco",
"burrito",
"fish n'chips",
"fried fish",
"wrap",
"calzone",
"panini",
"sambo",
"roll",
"bacon
]
Total menu lines: 53
Total bad menu food lines: 20
Relation: 37.0%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment