Skip to content

Instantly share code, notes, and snippets.

Maximilian Nöthe MaxNoe

Block or report user

Report or block MaxNoe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@MaxNoe
MaxNoe / plot_mjd_secondary.py
Last active May 20, 2019
Plotting a secondary MJD date axis with matplotlib 3.1
View plot_mjd_secondary.py
import matplotlib.pyplot as plt
import numpy as np
from scipy.constants import k, h, c
from matplotlib.dates import date2num
from astropy.time import Time
import astropy.units as u
MJDREF = date2num(Time(0, format='mjd').datetime)
@MaxNoe
MaxNoe / header-matplotlib.tex
Last active Aug 17, 2018
Graphic explaining the hillas features in Imaging Air Cherenkov Astronomy
View header-matplotlib.tex
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{fontspec}
\usepackage{xcolor}
\setmainfont[BoldFont=Akkurat Office]{Akkurat Light Office}
\setsansfont[BoldFont=Akkurat Office]{Akkurat Light Office}
\setmonofont[BoldFont=Fira Code, Scale=MatchLowercase]{Fira Code Light}
\usepackage[
math-style=ISO,
@MaxNoe
MaxNoe / muon_lifetime_fits.py
Last active Jun 21, 2018
Fitting histograms of muon lifetimes. Do not estimate weights from your data!
View muon_lifetime_fits.py
import numpy as np
from scipy.optimize import curve_fit, minimize
import matplotlib.pyplot as plt
from tqdm import tqdm
from scipy.stats import poisson
MUON_LIFETIME = 2.196_981_1
bins = np.linspace(0.5, 12, 150)
@MaxNoe
MaxNoe / download_gutenberg.py
Last active Jan 5, 2018
Download html and images from gutenberg.spiegel.de and convert to ebooks
View download_gutenberg.py
import requests
from bs4 import BeautifulSoup
from argparse import ArgumentParser
import subprocess as sp
import tempfile
import os
from multiprocessing.pool import ThreadPool
import json
import logging
import re
View ADS_Language_Query.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.