This is definitely one of those details that job seekers stress about and some hiring managers care about, but at the end of the day really don't matter to the vast majority of people. But that doesn't mean the details aren't important (we even have a question on Workplace SE about the quality of paper for such things), if not just for the sake of clearing one's head of details to stress about.
First and foremost, if you weren't told what to bring, just ask ahead of time what they want to see. That erases any doubt about what to bring.
As to how to present it, you could do any of the things in your list and be well within the bounds of etiquette and preparation. As a hiring manager, I would consider it a positive factor in your favor if you did any of them.
What I would want to see from you, no matter what position I'm hiring for, is a sense of preparation. To wit, I might not care at all about a paper resume (because I will have already seen it electronically), but if you walk in with one I will think:
- How nice, a reference copy. Thoughtful!
- Probably no one uses paper these days, but the candidate didn't know that I was one of those weirdos who does, and thus they are prepared for any eventuality!
Let's assume you were told to bring precisely these 4 items, and the question is how to hand them over. If they've told you that they want these 4 items, then they will probably ask for them specifically. If they don't, I would probably offer them at the outset: "I've brought the items you requested. Would you like them now?" Individual packets are nice, if you know how many people will be in the room.
Let's now assume you weren't told to bring precisely these 4 items. Make sure, then, that you're bringing value. Why these 4 items? From the perspective of a hiring manager who didn't ask you to bring them, I would be totally fine with the resume and reference list (because as commenters have noted, perhaps I didn't see your materials ahead of time in a useful way), wonder why you're giving me a business card for a company you're going to be leaving (unless it's your personal card, in which case, that information also should be on your resume), and I would wonder why you randomly picked 4 pages of code to print out, because I'm not going to look at it in the interview and if I'm interviewing a developer I'm going to ask for a GitHub profile or something not printed and out of context. But that's just me, and still, at the end of the day, it wouldn't affect my judgement one way or the other.