Not sure if this belongs to CrossValidated, Computational Science, or something else entirely.
I've got some code and data that's going into a publication, but I'd like to make said code and data publicly available so that the analysis can be replicated. If I was having it hosted by the publisher, I'd ignore this and let them deal with it, but for a number of reasons to code and data is being hosted externally on my own site.
I presume I should put some sort of license on said code and data. Is there a Creative Commons or other type of license that lends itself particular well to open data? Something else I should consider? Just not bother?