Skip to content

Instantly share code, notes, and snippets.

@neyer
Last active August 29, 2015 14:01
Show Gist options
  • Save neyer/36ff108a0eef9339f649 to your computer and use it in GitHub Desktop.
Save neyer/36ff108a0eef9339f649 to your computer and use it in GitHub Desktop.
hokey pokey: an algorithm for a dance
def hokey_pokey(self):
for appendage in [ "left_hand",
"right_hand",
"left_foot",
"right_foot",
"whole_head"] :
self.put_in(getattr(self,appendage))
self.take_out(getattr(self,appendage))
self.shake_about(getattr(self,appendage))
# it's not really recursive.
with self.jazz_hands() as hokey_pokey:
self.turn_around()
self.find_meaning() # that's what it's all about!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment