Quiver is a great notebook for programmers. It’s the first notebook app that I’ve seen that has the best support for code note taking. It supports over 120 languages. There’s even a presentation mode, so there’s little effort need to be made if you need to do an importu talk. Files are saved as JSON and can be saved locally or on a cloud platform.
The only downside is that it’s only for Macs. If you have a Mac, go ahead and download a free trial!