News for hackers. Stuff that matters.
Re:Show HN: Git Snippet – a free open source service for emb... by ishu3101 on Thursday February 25, 2016 @04:26PM (#11177936)
Check out Gist it - a chrome extension that lets you embed file from Github repository. https://chrome.google.com/webstore/detail/gist-it/gmemoangmf...
Re:Show HN: Git Snippet – a free open source service for emb... by chiedo on Thursday February 25, 2016 @05:33PM (#11178376)
Thanks! I will do.
Re:Show HN: Git Snippet – a free open source service for emb... by fiatjaf on Thursday February 25, 2016 @01:06PM (#11176315)
There are other services that do similar things out there, I just forgot their names.
Re:Show HN: Git Snippet – a free open source service for emb... by chiedo on Thursday February 25, 2016 @01:19PM (#11176430)
Darn, in that case, I wasted a good amount of time! Hahaha. I wasn't able to find the other services though.

When you remember, if you could drop them in here, that would be awesome! If they're open source, I may just contribute to those. Otherwise, I'll probably keep this going.

Re:Show HN: Git Snippet – a free open source service for emb... by fiatjaf on Thursday February 25, 2016 @06:26PM (#11178683)
I found two: one is not working anymore/abandoned: https://github.com/kirbysayshi/ghembedder, the other seems incomplete/abandoned: https://github.com/cloud9ide/snippets

But there was one which worked, I think I used it somewhere some months ago. Perhaps it was discontinued also. I can't find it.

Anyway, I think yours is much better (although I haven't used it yet).

Re:Show HN: Git Snippet – a free open source service for emb... by chiedo on Friday February 26, 2016 @02:08PM (#11183314)
Thanks :) I appreciate you looking into that for me.
Re:Show HN: Git Snippet – a free open source service for emb... by gravypod on Thursday February 25, 2016 @12:51PM (#11176190)
Is there planned support for gitlabs sometime soon? I've been moving all my projects slowly off github due to recent events.
Re:Show HN: Git Snippet – a free open source service for emb... by gravypod on Thursday February 25, 2016 @12:52PM (#11176195)
I also want to add that even just as it sits this is really cool and I'll definitely be using it in the short future.
Re:Show HN: Git Snippet – a free open source service for emb... by chiedo on Thursday February 25, 2016 @12:55PM (#11176225)
Thanks! :) I could add support for gitlabs pretty easily.

Could you do me a favor and submit a feature request on github?

I can definitely get it in there.

Re:Show HN: Git Snippet – a free open source service for emb... by gravypod on Thursday February 25, 2016 @12:55PM (#11176229)
Yea, definitely. This is a really cool project.
Re:Show HN: Git Snippet – a free open source service for emb... by chiedo on Thursday February 25, 2016 @02:02PM (#11176838)
GitLab support added :)
Re:Show HN: Git Snippet – a free open source service for emb... by sytse on Thursday February 25, 2016 @03:04PM (#11177372)
Awesome!
Re:Show HN: Git Snippet – a free open source service for emb... by michaelmior on Thursday February 25, 2016 @11:51AM (#11175686)
Your live example is trying to fetch something from `localhost`.
Re:Show HN: Git Snippet – a free open source service for emb... by chiedo on Thursday February 25, 2016 @12:01PM (#11175788)
Hahaha, fixed. Thanks lol
Re:Show HN: Git Snippet – a free open source service for emb... by Gmo on Thursday February 25, 2016 @02:57PM (#11177305)
I think you should add syntax coloring on your snippets.
Re:Show HN: Git Snippet – a free open source service for emb... by chiedo on Thursday February 25, 2016 @03:27PM (#11177531)
Hmmm... I'm not sure I understand what you mean.

Could you clarify?

I'm definitely seeing syntax highlighting here. http://www.gitsnippet.com/test.html

Re:Show HN: Git Snippet – a free open source service for emb... by ZaneA on Thursday February 25, 2016 @07:44PM (#11179089)
No syntax highlighting here either, Firefox 44.0.2, console shows that loadJS is undefined
Re:Show HN: Git Snippet – a free open source service for emb... by chiedo on Friday February 26, 2016 @02:19PM (#11183388)
Ahhh, I'll look into that on firefox :)

Thanks,

Re:Show HN: Git Snippet – a free open source service for emb... by chiedo on Friday February 26, 2016 @03:29PM (#11183980)
Patched. Syntax highlighting should work now :)