Just visit any project you'd like to embed on Sourcegraph, select the line range like you normally would on Github (click the start line number and shift+click the end line number, for example https://sourcegraph.com/github.com/gbbr/gomez@ab725e29f93c84...), and click Embed on the toolbar at the top right.