View more demos...

Github


Code:

SocialDig({
    selector: '.github',
    service: 'github',
    user: 'kjbrum'
}, function(data) {
    if (data.length > 0) {
        var list = document.createElement('ul');
        list.className = 'list-plain repos';

        // Loop through the repos
        data.forEach(function(el, idx, arr) {
            if (idx < 4) {
                var item = document.createElement('li');
                item.className = 'repo';

                item.innerHTML = '<a href="' + el.html_url + '">' + el.full_name + '</a><br><small>' + el.description + '</small>';

                // Add the new item to the list
                list.appendChild(item);
            }
        });

        // Add the list to the page
        document.querySelector('.github').appendChild(list);
    }
});

Results: