Skip to content

Instantly share code, notes, and snippets.

View Ledragon's full-sized avatar

Hugues Stefanski Ledragon

View GitHub Profile
@Ledragon
Ledragon / app.js
Last active August 29, 2015 14:16
Test bl.ocks.org
(
function () {
var svg = d3.select('#surface')
.append('svg')
.attr({
'width': '640px',
'height': '480px'
});
var data = new Array(10);
svg.selectAll('rect')
@Ledragon
Ledragon / app.js
Last active August 29, 2015 14:16
ld-ui-navbar Example
(
function () {
var app = angular.module('app', ['ui.router', 'ld-framework']);
app.config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/');
$stateProvider
.state('home', {
url: '/home',
templateUrl: 'states/home.html'
})
@Ledragon
Ledragon / index.html
Last active December 29, 2015 16:47
Test of the map framework
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Framework test</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://cdn.rawgit.com/Ledragon/LeDragon-MapFramework/master/dist/LeDragon-Framework.css" rel="stylesheet" />
<body>
<div class="container-fluid">
@Ledragon
Ledragon / app.js
Last active June 1, 2016 14:19
Makeover Monday 22
(function () {
var width = 800;
var height = 450;
var histogram = new app.histogram('histogram', width, height);
var map = new app.map('map', width, height, 'https://cdn.rawgit.com/Ledragon/MakeOverMonday22/master/data/world.json');
var perYear = new app.viewPerYearOfBirth('perYear', width, height);
var perIndustry = new app.womenPerIndustry('other', width, height);
var brush = new app.brush('brush', 1606, 50);
d3.csv('https://cdn.rawgit.com/Ledragon/MakeOverMonday22/master/data/History%20of%20Famous%20People.csv', function (error, data) {
if (error) {
node_modules
*.xlsx
typings
@Ledragon
Ledragon / 1.README.md
Created January 8, 2017 17:30 — forked from varemenos/1.README.md
Git log in JSON format

Get Git log in JSON format

git log --pretty=format:'{%n  "commit": "%H",%n  "abbreviated_commit": "%h",%n  "tree": "%T",%n  "abbreviated_tree": "%t",%n  "parent": "%P",%n  "abbreviated_parent": "%p",%n  "refs": "%D",%n  "encoding": "%e",%n  "subject": "%s",%n  "sanitized_subject_line": "%f",%n  "body": "%b",%n  "commit_notes": "%N",%n  "verification_flag": "%G?",%n  "signer": "%GS",%n  "signer_key": "%GK",%n  "author": {%n    "name": "%aN",%n    "email": "%aE",%n    "date": "%aD"%n  },%n  "commiter": {%n    "name": "%cN",%n    "email": "%cE",%n    "date": "%cD"%n  }%n},'

The only information that aren't fetched are:

  • %B: raw body (unwrapped subject and body)
  • %GG: raw verification message from GPG for a signed commit