Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
106 lines (93 sloc) 3.67 KB
<title>DavGlass :: GitHub</title>
<link rel="stylesheet" href="" type="text/css">
<link rel="stylesheet" href="" type="text/css">
<link rel="stylesheet" type="text/css" href="">
<style type="text/css" media="screen">
p {
margin: 1em;
#content li {
padding: 3px;
#content li a {
text-decoration: none;
display: block;
border: 1px solid #ccc;
padding: .25em;
padding-right: 20px;
text-align: right;
background-image: url( );
background-repeat: no-repeat;
background-position: right 2px;
#content li a:hover {
background-color: #ccc;
color: black;
<a href=""><img style="position: absolute; top: 0; right: 0; border: 0;" src="" alt="Fork me on GitHub" /></a>
<div id="davdoc" class="yui-t5">
<div id="hd"><h1 id="header"><a href="">DavGlass :: GitHub</a></h1></div>
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<div class="yui-g">
<p>This is just a little page to show off some of my <a href="">GitHub Projects</a>.</p>
<h2>Source for the Javascript Template on this page</h2>
<pre id="example_template" class="code prettyprint">
<h2>Source for the Javascript on this page</h2>
<pre id="example" class="code prettyprint">
<div class="yui-b" id="content">
<div id="ft">&nbsp;</div>
<script src=""></script>
<script type="text/javascript" src=""></script>
<script id="list-template" type="text/x-handlebars-template">
<h2>My GitHub Projects</h2>
<li><a href="{{url}}">{{name}}</a></li>
<script type="text/javascript" id="script">
YUI().use('escape', 'jsonp', 'node', 'handlebars', function(Y) {
var limit = 20, // how many repos to list
url = '{callback}', //The URL of the JSON request
final_repos = [], html,
source ='#list-template').get('text'),
template = Y.Handlebars.compile(source);'#example').setContent(Y.Escape.html('#script').get('text')));'#example_template').setContent(Y.Escape.html(source));
Y.jsonp(url, function(data) {
var repos = data.user.repositories,
list ='#projects');
repos.sort(function(a, b) {
return b.watchers - a.watchers
Y.Array.each(repos.slice(0, limit), function(v, k) {
if (!v.fork && ('') == -1)) {
html = template({ items: final_repos });'#content').setContent(html);