How to prevent Nexus 7 of charging the battery every time when connected to a USB?
Charge/discharge cycles are mostly irrelevant for li-ion batteries.  The main source of capacity loss is simply time.  A li-ion battery sitting unused in storage will lose 15-20% of its capacity per year (see charts on page 4).  Any minor losses from cycling is going to get drowned out by that.