Bad advice in this thread. As someone who spent half a decade building what (was) a quite impressive GitHub (github.com/dginovker), no interviewer or recruiter ever looked at it. This was after ~600 applications.
I also volunteered to be part of resume screening at two major companies. Not a single person in either company looked at GitHub repos.
To answer your initial question, use a library. Make cool things, learn good tech that is useful in the real world. You will never have a job where you have to reimplement a hashmap.