Skip to content

Instantly share code, notes, and snippets.

View alexandrehuat's full-sized avatar

Alexandre Huat alexandrehuat

View GitHub Profile
@alexandrehuat
alexandrehuat / population_vs_temperature.py
Last active June 16, 2023 13:13
Plotting world population vs. global average temperature anomaly
"""
Purpose: To study how world population influences global temperature.
Results: Standardised temperature anomaly closely fit standardised population anomaly.
Standardized green house gaz emissions (GHGE) do not fit standardized temperature anomaly.
Univariate linear regression of population growth and GHGE fit temperature well.
Conclusion: Population growth seems to predict global temperature anomaly, at least since 1850.
Humans seem to sources of temperature by themselves.
A lack of GHGE data and the absence of direct fit (from standardized data) prevent us from being more affirmative regarding the link between GHGE and temperature.
@alexandrehuat
alexandrehuat / gupall.sh
Created March 20, 2020 22:24
Update all the repositories in the current directory
for dir in $(ls); do
if [ -d $dir ]; then
cd $dir
if [ -d .git ]
then
echo "================================================================"
echo "Project: $dir"
git pull --rebase
fi
cd ..
@alexandrehuat
alexandrehuat / notebook.ipynb
Last active June 21, 2023 20:33
Breaking down misconceptions on screening tests in the era of COVID-19.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexandrehuat
alexandrehuat / battle_dev_regionsjob_201903_extremites_manquantes.py
Created May 17, 2019 19:02
Battle Dev RegionsJob - Mars 2019 : Exercice 6/6 : Extrémités manquantes
"""
Test from here : https://www.isograd.com/FR/solutionconcours.php?contest_id=46
"""
#*******
#* Read input from STDIN
#* Use: echo or print to output your result to STDOUT, use the /n constant at the end of each result line.
#* Use: sys.stderr.write() to display debugging information to STDERR
#* ***/
import sys
@alexandrehuat
alexandrehuat / battle_dev_regionsjob_201903_couloir_au_tresor.py
Last active May 16, 2019 23:59
Battle Dev RegionsJob - Mars 2019 : Exercice 5/6 : Couloir au trésor
"""
Test the solution from here : https://www.isograd.com/FR/solutionconcours.php
"""
#*******
#* Read input from STDIN
#* Use: echo or print to output your result to STDOUT, use the /n constant at the end of each result line.
#* Use: sys.stderr.write() to display debugging information to STDERR
#* ***/
import sys
@alexandrehuat
alexandrehuat / mendeley_bibtex_cleaner.py
Last active January 14, 2022 02:22
Mendeley-exported BibTeX cleaner
import sys
import re
from collections import Counter
import bibtexparser as bp
# ==============================================================================
# Process
# ==============================================================================
@alexandrehuat
alexandrehuat / macros.tex
Last active January 23, 2019 18:33
My LaTeX macros
\usepackage{todonotes}
%%% Maths commands
\usepackage{amsmath,amssymb,amsthm,mathtools,cool}
% Naturals, reals, etc.
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\I}{\mathbb{I}}
@alexandrehuat
alexandrehuat / .zshrc (Ubuntu)
Last active December 7, 2018 13:26
My Oh My Zsh! configuration
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@alexandrehuat
alexandrehuat / battle_dev_regionsjob_201703_prise_de_la_pastille.py
Last active November 3, 2018 19:41
Battle Dev RegionsJob - Mars 2017 : Exercice 4/5 : Prise de la Pastille
"""
Ma solution Python à l'avant dernier exercice de la Battle Dev RegionsJob - Mars 2017 [1], Prise de la Pastille.
À retrouver et tester à partir d'ici: https://www.isograd.com/FR/solutionconcours.php?contest_id=23
Le code n'est pas optimisé et provoque parfois l'erreur "Maximum execution time has been reached".
"""
#*******
#* Read input from STDIN
#* Use: echo or print to output your result to STDOUT, use the /n constant at the end of each result line.