This project demonstrates the use of GLFW to create a window with an OpenGL context. Like all projects so far, this one exists in a single C++ source code file.
I don't know how this code works yet. It came from a Github Gist by Yilin Gui, and I'm in the process of deciphering it.