This video shows a robotic arm going through the process of learning to flip a pancake in a frying pan:
After about 50 attempts, the arm is finally able to perfect its wrist-flipping technique, so the fake metal flapjack flips and lands in the skillet. You almost want to start clapping.
The robot learned via kinesthetic teaching, which involves a person grasping the arm and performing the motion. Sensors record the movement and then the robot attempts to replicate the feat. The robot perfects the motion by attempting the task on its own and adjusting various factors until it gets is right.