iTunes Store terms state that purchases made by you are for your use only, with temporary multi-user sharing possible through Family Sharing. This is a fundamental difference between iTunes Store purchases and good old CDs where the owner was the owner of the CD. You can't give away or will iTunes Store purchases to another user (one of the reasons I still only buy CDs). I don't know what Pandora's terms are. Most music online has some kind of legalese surrounding it unless it is clearly labeled as free for distribution. Nowadays few services use DRM protection to actually stop you from giving the neighbor your computer loaded with music but technically it is illegal.
Giving a neighbor a ripped copy of the music from CD without giving them the CD isn't legal.
As Niel said, only old iTunes Store music and all movies still use DRM protection requiring authorization to be played. I use an old computer without Apple's new online software downloads so I don't know exactly how the new system works for software. At best your neighbor would find it might not be possible to download updates or re-download any software you purchased under your AppleID. Again, unlike the old days when you could give or sell software to somebody by handing them the CD, now it is tied to your account (don't get me started on how this is going to really put a dent into the used computer market).