How to cite my own code in an academic paper? I’m about to submit a research paper to the Intel STS competition. I am basically finished with everything about my paper, but I need to cite a certain algorithm that I invented in my own paper. I do not want to put it inside the paper because it’s outside the scope of what I talked about in the paper, and besides the paper is already twenty pages so I can’t fit in any more material.

Is it acceptable if I simply post the code to a website like GitHub, and cite the link in my references?
As you suggested you can create a GitHub repository for your code. There is also the possibility to create a release of your repository. Then you can get a DOI for that release using Zenodo:

Zenodo How-to

You can then put that DOI in your paper as reference and do not have the problem with changing code, because the DOI is associated with the specific release.