This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests, json | |
import operator | |
from tqdm import tqdm | |
def main(): | |
org = 'asrob-uc3m' | |
url_repos = 'https://api.github.com/orgs/{}/repos' | |
url_repo_contributors = 'https://api.github.com/repos/{}/{}/contributors' | |
contributors = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################## | |
# O'Reilly Free Books link extractor | |
################################################################################## | |
# | |
# Extracts all links from O'Reilly website to automate free eBook download. | |
# Looks for existing files in the current directory to avoid downloading the same | |
# book twice. | |
# | |
################################################################################## | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TITLE=`pdfinfo $1 | head -n 2 | cut -d ':' -f2 | head -n1 | sed -e 's/^[[:space:]]*//'` | |
AUTHOR=`pdfinfo $1 | head -n 2 | cut -d ':' -f2 | tail -n1 | sed -e 's/^[[:space:]]*//'` | |
echo "$TITLE - [$AUTHOR]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\begin{table*}[ht] | |
%\renewcommand{\arraystretch}{1.3} | |
\vspace{1em} | |
\caption{Original Algorithm: Results, expressed in percentage (\%)} | |
\label{table:good_results} | |
\centering | |
\begin{tabular}{|r||r|r|r|r|r|r||r|} % <-- edit with number of rows | |
% <-- table contents go here --> | |
\end{tabular} | |
\end{table*} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\usepackage[breaklinks]{hyperref} % Setup goes here | |
\usepackage[hyphenbreaks]{breakurl} | |
\usepackage{hypdvips} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Update the labels in a repo | |
Requirements: | |
$ pip install begins requests | |
# Usage: | |
$ python labels.py --owner <repo_owner> --repo <repo_name> --api-key <GitHub API key> |