#HalachaYomi OC 527:1 Yom Tov on Friday: can cook for Yom Tov & if made too much, can use leftovers Shabat. With Eruv can cook for Shabat.