How to add YouTube video?

Take the embed code directly from YouTube website and paste in markdown file with additional parameter like following.

How to add Gist code snippet?

Take the embed code directly from Gist website and paste in markdown file.