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 https://www.timroes.de/writing-kibana-plugins-custom-applications

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