Publish it on GitHub (or GitLab or your code hosting service of choice).
Then answer any criticism about it by asking for a PR.
To preempt code style complaints find a code formatter for your language and run everything through that first.
Refer to the repository in your paper, but don't put a link. Create a little bit of friction to get to the repo to discourage the casual readers who don't really need the code from popping over too easily.
Then answer any criticism about it by asking for a PR.
To preempt code style complaints find a code formatter for your language and run everything through that first.
Refer to the repository in your paper, but don't put a link. Create a little bit of friction to get to the repo to discourage the casual readers who don't really need the code from popping over too easily.