Represent Your Repositories Using the GitHub Badge!

By  on  

Update: The badge includes jQuery which breaks any MooTools on your page. Be aware before including...as I wasn't.

Update 2: MooTool's own Thomas Aylott has an awesome MooTools version! You can grab it at: http://github.com/subtleGradient/mootools-github-badge/tree/master!

GitHub users are generally proud of their repositories. Why not bring your repository list into your blog then?

The XHTML / JavaScript

<div id="github-badge"></div>
<script type="text/javascript" charset="utf-8">
  GITHUB_USERNAME = 'darkwing';
  GITHUB_LIST_LENGTH = 30;
  GITHUB_HEAD = 'div';
  GITHUB_THEME = 'white';
  GITHUB_TITLE = 'David\'s Projects';
  GITHUB_SHOW_ALL = 'Show all';
</script>
<script src="http://drnic.github.com/github-badges/dist/github-badge-launcher.js" type="text/javascript"></script>

Sooooooo little code!

So what are you waiting for? Represent and share your GitHub repositories!

Recent Features

  • By
    Write Better JavaScript with Promises

    You've probably heard the talk around the water cooler about how promises are the future. All of the cool kids are using them, but you don't see what makes them so special. Can't you just use a callback? What's the big deal? In this article, we'll...

  • By
    Welcome to My New Office

    My first professional web development was at a small print shop where I sat in a windowless cubical all day. I suffered that boxed in environment for almost five years before I was able to find a remote job where I worked from home. The first...

Incredible Demos

Discussion

  1. wesite look like firefox personas web page Awesome design

Wrap your code in <pre class="{language}"></pre> tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed!