Skip to content

Instantly share code, notes, and snippets.

@evanp
Created April 14, 2016 14:45
Show Gist options
  • Save evanp/e0de44ad126013abe9dff93bead6a64e to your computer and use it in GitHub Desktop.
Save evanp/e0de44ad126013abe9dff93bead6a64e to your computer and use it in GitHub Desktop.
# BREAD PUDDING
# By Evan & Amita Prodromou
let oven
oven.preheat(350)
let bread = [bread, cake, cupcake, cinnamon rolls, bagel]
For each bread,
bread = bread / 2
if bread <= 1 cm
break
else
continue
assert sizeof(bread) == 12 * cup
let milk = [cup, cup, cup, cup]
let butter = cup/2
pan.addTo(milk, butter)
until (butter.isMelted() and milk.temperature == hot)
pan.heat(medium)
let eggs = [egg, egg, egg, egg]
let sugar = cup
let cinnamon = teaspoon
let nutmeg = teaspoon
let salt = teaspoon/2
let vanilla = teaspoon
eggs.beat()
wetBowl = eggs + sugar + cinnamon + nutmeg + salt + vanilla
wetBowl.mix()
wetBowl = wetBowl + bread
wetBowl.mix()
raisins = cup
wetBowl = wetBowl + raisins
wetBowl.mix()
wetBowl = wetBowl + pan.contents
wetBowl.mix()
let casserole
assert(!casserole.greased)
casserole.contents = wetBowl.contents
oven.contents = casserole
wait(45 * minute)
let knife
almostDone:
knife.insert(casserole.contents)
if !knife.isClean()
wait(2 * minute)
goto almostDone
oven.turnOff()
# WHIPCREAM
let large_bowl
let whipping_cream
let electric_mixer
let frosting_sugar
large_bowl = whipping cream, frosting_sugar
while (whipping_cream.get_state() != STIFF) do
whipping_cream.beat(electric_mixer)
@nylen
Copy link

nylen commented Apr 14, 2016

Suggested revision:

diff --git a/Bread Pudding and Whipped Cream b/Bread Pudding and Whipped Cream
index 9b7950c..c899055 100644
--- a/Bread Pudding and Whipped Cream   
+++ b/Bread Pudding and Whipped Cream   
@@ -39,12 +39,6 @@ wetBowl = wetBowl + bread

 wetBowl.mix()

-raisins = cup
-
-wetBowl = wetBowl + raisins
-
-wetBowl.mix()
-
 wetBowl = wetBowl + pan.contents

 wetBowl.mix()

@evanp
Copy link
Author

evanp commented Apr 15, 2016

That might be a configuration option.

@e-gris
Copy link

e-gris commented Apr 15, 2016

I'd humbly like to propose the following enhancement. Not terribly huge for this application but a damn useful library to have around.

< knife.insert(casserole.contents)
< if !knife.isClean()
< wait(2 * minute)
< goto almostDone

thermapen.units(ThermaPen::Celsius)
thermapen.insert(casserole.contents)
if thermapen.currentReading < 105
wait(2 * minute)
goto almostDone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment