https://wiki.garrysmod.com/page/Main_Page
https://www.lua.org/pil/contents.html
seriously, just read up on it
for addons you simply just drop your shit in the addons folder ( there is a very helpful wiki page on this )
as for 'examples', you can simply google that too. I wouldn't recommend looking here for examples as most of the shit here is just bad.