JSFiddle - React, Tailwind, and code Playground

by Christian Juth

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script src="https://cdn.rawgit.com/michael/github/master/github.js"></script>
<h2>Christian's Github Repos</h2>
<ul id="repos">
</ul>

CSS

a{
    width: 100%;
    display: inline-block;
}

JavaScript

$(document).ready(function() {
  var github = new Github({
    token: "7b1d0d1bfeb08c6df27d972ef73dae3417514f2f",
    auth: "oauth"
  });

  var user = github.getUser();
  user.repos(function(err, repos) {
    for (i = 0; i < repos.length; i++) {
      repo = repos[i];
      tag = '<a target="_blank" href="'+repo.html_url+'"><li>'+repo.name+'</li></a>';
      $('#repos').append(tag);
    }
  });
  
});