Skip to content

Instantly share code, notes, and snippets.

<body style="background-color:clear">
<iframe width='100%' height='100%' frameborder='0' allowfullscreen></iframe>
<script type="text/javascript">
document.body.getElementsByTagName("iframe")[0].src = "https://www.youtube.com/embed/"+location.href.split(".html?")[1];
</script>
</body>
@geokavel
geokavel / spices.chef
Last active August 31, 2017 06:41
Beginning of solution to https://codegolf.stackexchange.com/questions/141109/cooking-with-code. Puts inputs into mixing bowls.
Cooking with Code.
This works in the perl interpreter.
Input: Chef only takes numerical input. All inputs are new-line separated.
Input a bunch of numbers representing your ingredients. Then input '0'.
Then input some more numbers that represent each spice you use. Then input '0'.
This program puts the ingredients in the 1st mixing bowl, the actions in the 2nd mixing bowl
(with a '0' at the bottom), and a copy of the ingredients in the 3rd.
The variable "ingredients" stores the number of different ingredients you have.