title: Publish Python code for data analysis and reference it in PhD Thesis
body: <p>I have a general question concerning "publishing" python code and referencing it later in my own PhD thesis. I hope someone can provide helpful thoughts about it.<br>
  My plan: 
  During my PhD time I have written several code snippets for time-frequency analysis. These are not large code projects, but snippets that provide functionalities, which are not included in the general <code>scipy.signal</code> package. In approximately 6 month I will hand in the thesis, so now I am thinking about what stuff to include in the thesis. If I include these snippets in my thesis I somehow thought it would be "cooler" to have them already "published" in any form instead of just putting the code in the appendix of the thesis. By doing so I might be able to write something like this in my thesis: <code>The code for analysing the data_x_y is also available at ...</code> </p>
  
  <p>I would like to find the easiest way to accomplish this.
  Thanks for any comments!</p>