Have some clear packing tape? Get 2 long pieces and tape a dollar bill on both sides of the bill. Start a little less than an inch on the end opposite of the side you put in first:
+-----------------+---+-----------+
|                 |   |           |
|       Tape      |   |    Bill   |   Side you place
|                 |   |           |   into machine 1st
|                 |   |           |
+-----------------+---+-----------+
Make sure you have a nice, new, clean bill so you won't get bubbles or wrinkles between the tape and bill. Also try to not to get the bubbles between the two pieces of tape. You should now have a dollar bill with a long tail of tape coming off the end. Make the tail at least 4 feet. Now you have a way to get a can or bottle of pop whenever you want (or any other thing that come in vending machines). Just put the dollar bill in holding the tape firmly, make your selection, and carefully pull the bill back out. If it doesn't work, you probably have bubbles. If you are sure there aren't any bubbles, then try another machine.

I have gotten this to work on about 10 different machines (every machine I have ever tried). Manufacturers of machines have started making ways to prevent this technique, though, so try older machines first.