1.) Attractive code sure helps
2.) Big follower base
3.) Advertise the code in the right designated places
4.) Have a bunch of people at hand that will upvote your stuff and comment on it no matter what. If they have a lot of followers, all the better.
5.) Get the timing right, when there's not too much uploading activity, but also no dead hour.
6.) Post your code directly after an update, when the hot-today limit of 24 hours is accidentally disfunct... again.
And if you want to make me happy, do just point 1 and nothing else.