More than one issue here:
Links to external resources (be them Git repositories or anything else) are only OK if they are supplemental to your question. Your question/post should stand on its own two legs without other users needing to follow the links. A post should be self-contained and complete. Links can die change, and any of these things would render your post obsolete.
Questions about "how to improve this code" are not on-topic in Stack Overflow. Stated like that the question is not properly scoped, and is liable to be closed as either too broad or primarily opinion based. Try to think over your question to provide a more stringent definition, so while multiple answers could exist, there isn't room for infinite answers, and it's easier to produce an answer that's unarguable correct or incorrect.
Some other users are recommending you to head over to CodeReview. I'm nof familiar enough with that site or know enough of your question to tell you if that's a good idea. You should spend some time reading their rules before deciding to post there, nevertheless the advise you get here. And no matter what, they would want your posts to be complete as well, without any external dependencies.
Some other users are recommending you to head over to CodeReview. I'm nof familiar enough with that site or know enough of your question to tell you if that's a good idea. You should spend some time reading their rules before deciding to post there, nevertheless the advise you get here. And no matter what, they would want your posts to be complete as well, without any external dependencies.