I use a Google Drive directory full of markdown notes for this purpose. Edit with Writeily, the amazing Android markdown editory, or Macdown on desktop. Done.
Take a look at Quiver, that's what I've been using. It's markdown + code cells + text... I find it amazing for what it does. The evernode of code snippets.