Lay your earbuds in your palm like shown.
Close your middle and ring fingers like this.
Wrap the cord under your pointer finger, then over your little finger.
Keep wrapping i around your little finger and index finger as shown above.
Put in your pocket and when you take it out, it will practically unravel right away