Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

144 lines (114 sloc) 5.329 kB
<!DOCTYPE html>
<html>
<head>
<title>Filip Wasilewski &mdash; Open Source</title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700&amp;subset=latin' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="assets/reset.css">
<link rel="stylesheet" type="text/css" href="assets/grid.css">
<link rel="stylesheet" type="text/css" href="assets/style.css">
<script type="text/javascript" src="assets/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="assets/strftime.js"></script>
<script type="text/javascript">
(function ($, undefined) {
// Put custom repo URL's in this object, keyed by repo name.
var repoUrls = {
// "bootstrap": "http://twitter.github.com/bootstrap/",
// "finagle": "http://twitter.github.com/finagle/",
// "hogan.js": "http://twitter.github.com/hogan.js/"
};
function repoUrl(repo) {
return repoUrls[repo.name] || repo.html_url;
}
// Put custom repo descriptions in this object, keyed by repo name.
var repoDescriptions = {
// "bootstrap": "An HTML, CSS, and JS toolkit designed to kickstart development of webapps and sites",
// "naggati2": "A protocol builder for Netty using Scala 2.8"
};
function repoDescription(repo) {
return repoDescriptions[repo.name] || repo.description;
}
function addRecentlyUpdatedRepo(repo) {
var $item = $("<li>");
var $name = $("<a>").attr("href", repo.html_url).text(repo.name);
$item.append($("<span>").addClass("name").append($name));
var $time = $("<a>").attr("href", repo.html_url + "/commits").text(strftime("%h %e, %Y", repo.pushed_at));
$item.append($("<span>").addClass("time").append($time));
$item.append('<span class="bullet">&sdot;</span>');
var $watchers = $("<a>").attr("href", repo.html_url + "/watchers").text(repo.watchers + " watchers");
$item.append($("<span>").addClass("watchers").append($watchers));
$item.append('<span class="bullet">&sdot;</span>');
var $forks = $("<a>").attr("href", repo.html_url + "/network").text(repo.forks + " forks");
$item.append($("<span>").addClass("forks").append($forks));
$item.appendTo("#recently-updated-repos");
}
function addRepo(repo) {
var $item = $("<li>").addClass("repo grid-1 " + (repo.language || '').toLowerCase());
var $link = $("<a>").attr("href", repoUrl(repo)).appendTo($item);
$link.append($("<h2>").text(repo.name));
$link.append($("<h3>").text(repo.language));
$link.append($("<p>").text(repoDescription(repo)));
$item.appendTo("#repos");
}
$.getJSON("https://api.github.com/users/nigma/repos?callback=?", function (result) {
var repos = result.data;
$(function () {
$("#num-repos").text(repos.length);
// Convert pushed_at to Date.
$.each(repos, function (i, repo) {
repo.pushed_at = new Date(repo.pushed_at);
var weekHalfLife = 1.146 * Math.pow(10, -9);
var pushDelta = (new Date) - Date.parse(repo.pushed_at);
var createdDelta = (new Date) - Date.parse(repo.created_at);
var weightForPush = 1;
var weightForWatchers = 1.314 * Math.pow(10, 7);
repo.hotness = weightForPush * Math.pow(Math.E, -1 * weekHalfLife * pushDelta);
repo.hotness += weightForWatchers * repo.watchers / createdDelta;
});
// Sort by highest # of watchers.
repos.sort(function (a, b) {
if (a.hotness < b.hotness) return 1;
if (b.hotness < a.hotness) return -1;
return 0;
});
$.each(repos, function (i, repo) {
addRepo(repo);
});
// Sort by most-recently pushed to.
repos.sort(function (a, b) {
if (a.pushed_at < b.pushed_at) return 1;
if (b.pushed_at < a.pushed_at) return -1;
return 0;
});
$.each(repos.slice(0, 3), function (i, repo) {
addRecentlyUpdatedRepo(repo);
});
});
});
})(jQuery);
</script>
</head>
<body>
<div id="wrapper" class="grid clearfix">
<div id="main" class="grid-1">
<div id="logo"><img width="170" height="170" src="http://gravatar.com/avatar/98262df6476a32977cb432a748052a59?s=170&d=identicon" /></div>
<h1>Filip Wasilewski</h1>
<h3>Explorer, entrepreneur at heart</h3>
<p><a href="http://en.ig.ma/">http://en.ig.ma/</a></p>
</div>
<div class="grid grid-3">
<div id="statistics" class="grid-1 alpha header">
<h1>Statistics</h1>
<p>
<a href="https://github.com/nigma/repositories"><span id="num-repos">&nbsp;</span> public repos</a>
</p>
<p>This page generated with code from Twitter.</p>
</div>
<div id="recently-updated" class="grid-2 omega header">
<h1>Recently updated <a href="https://github.com/nigma/repositories">View All on GitHub</a></h1>
<ol id="recently-updated-repos"></ol>
</div>
</div>
<ol id="repos"></ol>
</div>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.