Skip to content

Instantly share code, notes, and snippets.

View anaraven's full-sized avatar
💭
Working

Andres Aravena anaraven

💭
Working
View GitHub Profile
@anaraven
anaraven / get_wordcount_history_from_git.py
Created April 20, 2017 06:01 — forked from hjwp/get_wordcount_history_from_git.py
Script to go back through every single git commit and extract the current wordcount, to make a pretty graph
#!/usr/bin/env python3
from collections import namedtuple
import csv
from datetime import datetime
import os
import re
import subprocess
Commit = namedtuple('Commit', ['hash', 'subject', 'date'])
WordCount = namedtuple('WordCount', ['filename', 'lines', 'words'])
@anaraven
anaraven / 0_reuse_code.js
Created February 1, 2016 08:48
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
require(XML)
require(RCurl)
require(stringr)
require(rentrez)
require(rjson)
require(reshape2)
require(ggmap)
require(mapproj)
require(devtools)