Here’s some science you can keep in mind when you’re finishing off the leftovers in your fridge, plus a few tips for safer cooking and eating.