Skip to content

Instantly share code, notes, and snippets.

View AlexandreBroudin's full-sized avatar

Alexandre Broudin AlexandreBroudin

View GitHub Profile
@AlexandreBroudin
AlexandreBroudin / rtl
Created November 1, 2013 19:35
rtl languages
.pull-origin {
float: left;
}
.push-direction {
float: right;
}
// RTL languages
.rtl {
@AlexandreBroudin
AlexandreBroudin / Get last commit
Last active December 21, 2015 06:19
Get last commit from any of your public repos with github API
$.getJSON("https://api.github.com/users/alexandrebroudin/repos", function(data) {
$.getJSON(data[0].commits_url.slice(0, -6), function(data) {
$('.post-git-commit-sha').text(data[0].sha);
$('.post-git-commit-author').text(data[0].commit.committer.name);
$('.post-git-commit-message').text(data[0].commit.message);
$('.post-git-commit-url').text(data[0].commit.url);
});
});