This code will allow you to control an Arduino/ESP8266 (NodeMCU) over the internet by using the HTTP protocol, you simple need to type custom URLs in any browser connected to the same network as the Arduino.
To learn more about this project, and understand the basics of HTTP and how to implement it on an Arduino you should check this video: https://youtu.be/-35Zn2i6Rjc