Created
July 5, 2010 16:11
-
-
Save virtix/464499 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* This is a great muffin recipe, from "Are You Hungry Tonight, Elvis' Favorite Recipes" | |
* | |
* */ | |
(function(){ | |
var programmer = new Programmer(); | |
var dry_ingredients = {}; | |
var wet_ingredient = {}; | |
var bowl1 = new Bowl(); | |
var bowl2 = new Bowl(); | |
var oven = new Oven(); | |
var muffin_pan = new MuffinPan( 12 ); | |
var muffins = []; | |
var blueberries = '1.5c'; | |
dry_ingredients['flour'] = '1c'; | |
dry_ingredients['cornmeal'] = '1.25c'; | |
dry_ingredients['sugar'] = '.25c'; | |
dry_ingredients['brown_sugar'] = '.25c'; | |
dry_ingredients['salt'] = '.25tsp'; | |
dry_ingredients['baking_soda'] = '1tsp'; | |
wet_ingredient['egg'] = 1; | |
wet_ingredient['buttermilk'] = 1c; | |
wet_ingredient['corn-oil'] = .75c; | |
oven.preHeat( 425 ); //Farenheit | |
muffin_pan.grease('butter'); //or use muffin paper baking cup | |
bowl1.mix( dry_ingredients ); | |
bowl2.mix( wet_ingredients ); | |
bowl1.mix( bowl_2.getContents() ); | |
bow1.fold( blueberries, {gentle:true} ); | |
(function (){ | |
var big_spoonful = '2oz'; //approx. 1 x-large tablespoon | |
var muffin = null; | |
for(muffin in muffin_pan){ | |
muffin.add( bowl1.get(big_spoonful) ); | |
} | |
})(); | |
oven.add( muffin_pan ); | |
setTimeout( function(){ alert('Should be golden brown and done!') } , 72000); //20 minutes | |
oven.remove( muffin_pan ); | |
muffin_pan.cool( 5 ); //approx minutes | |
muffins = muffin_pan.removeMuffins(); | |
programmer.eat( muffins[0],muffins[1],... ); | |
programmer.drink( 'coffee' ); | |
programmer.writeKillerApp(); | |
})(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment