Skip to content

Embed a file from Github repository just like Github Gist.

License

Notifications You must be signed in to change notification settings

LasseBlaauwbroek/embed-like-gist

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Embed Like Gist

https://emgithub.com/

Embed a file from Github repository just like Github Gist.

Related post: https://blog.yusanshi.com/2019-12-17-emgithub/

Get started

There are two ways to use the service.

Supposed you want to embed the file https://github.com/pytorch/pytorch/blob/master/torch/nn/cpp.py. The first way is to visit https://emgithub.com/ and paste the URL. The other is to simply add "em" before "github.com". For this cpp.py file, you edit URL into https://emgithub.com/pytorch/pytorch/blob/master/torch/nn/cpp.py, then press Enter.

TODO

  • Support more styles
  • Check input
  • Show spinner while loading
  • Add metadata
  • Line count
  • Different styles in one page

PR is always welcomed.

Credits

About

Embed a file from Github repository just like Github Gist.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 69.3%
  • JavaScript 30.7%