Skip to content

Instantly share code, notes, and snippets.

View davier26's full-sized avatar

Sebastian Dieser davier26

View GitHub Profile
git log --since='last month' --pretty=format:'%h,%an,%ar,%s' > log.csv
# Country choices: [code, name]
COUNTRIES = (
('AD', 'Andorra'),
('AE', 'United Arab Emirates'),
('AF', 'Afghanistan'),
('AG', 'Antigua & Barbuda'),
('AI', 'Anguilla'),
('AL', 'Albania'),
('AM', 'Armenia'),
('AN', 'Netherlands Antilles'),
@davier26
davier26 / git-loglive
Last active August 29, 2015 14:00 — forked from tlberglund/git-loglive
Bash func: git-loglive
function git-livelog() {
while :
do
clear
git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $*
sleep 1
done
}
@davier26
davier26 / ng-konami.js
Last active December 16, 2015 08:29
Konami Code
/* up, up, down, down, left, right, left, right, b, a */
myapp.directive("konami", function () {
return {
restrict: "AEC",
controller: function ($scope) {
$scope.unleashTheUnicorns = function () {
...
}
},