Contact Us

Debuggable Scraps on GitHub

Posted on 29/7/08 by Felix Geisendörfer

Hey folks,

Tim and I finally found a good way to share all the code we have been publishing on this blog in a central place as well as making it easy for people to contribute own changes to it. The solution is GitHub, a truly great application when it comes to hosting git repositories in a collaborative manner.

How is this better than a svn project? Well, first of all the distributed nature of git makes it very easy for people to 'fork' any given project, making their own changes to it and then asking the maintainer of the original project to 'merge' their changes. Another very neat thing is a feature by Github itself that allows to display the contents of documentation files directly in the repository browser.

So here is the link to the Debuggable Scraps Repository.

At this point we've only added the Google Analytics API / data source as well as a jQuery plugin called Expandable that we wrote today and that will be demonstrated in an upcoming post. But over the next 2-3 days we'll try to add all missing projects as well as a bunch of other previously unreleased snippets.

Hope some of you guys like the idea and will help by forking the project and contributing some changes : ).

-- Felix Geisendörfer aka the_undefined

PS: The name 'debuggable scraps' was chosen because all of the code in the repository is too trivial to make for an own repository yet may sometimes need some debugging ; ).


You can skip to the end and add a comment.

NOSLOW  said on Jul 29, 2008:

Cool! I was just reading about GitHub at SitePoint ( These scraps are a good reason for me to actually check it out (no pun intended).

kabturek said on Aug 01, 2008:

i do prefer ;) (private projects included)

oh assembla has a github plugin too ;)

kvz said on Sep 29, 2008:

Hi Felix, there's a little bug in jquery.expandable.js which normally stays hidden, but comes to surface in IE7 ( :| yeah I know... it's locked up in a virtual instance, but still )

length: 20,
greedy: true,

should be

length: 20,
greedy: true

(without the suffixing comma)

Also, as a feature request, you might consider a regex or something to ensure html tags aren't broken in half. e.g. I had a span that ended up <SPA| more »

Felix Geisendörfer said on Oct 09, 2008:

kvz: Fixed in:

Do you have a good idea for a patch to not break tags?

This post is too old. We do not allow comments here anymore in order to fight spam. If you have real feedback or questions for the post, please contact us.