Sample kibana plugin code

Preferably kibana 6.x version

does any one have sample plugin code .
Any sample plugin to understand how to write a plugin
or any document how can we write a plugin

Thanks in advance

You can start here

any other link ?? this one is not working out for me