In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:
- Separate big codebases into multiple repositories.
import numpy as np | |
from scipy.interpolate import InterpolatedUnivariateSpline as spline | |
class ErrorPropagationSpline(object): | |
""" | |
Does a spline fit, but returns both the spline value and associated uncertainty. | |
""" | |
def __init__(self, x, y, yerr, N=1000, *args, **kwargs): | |
""" | |
See docstring for InterpolatedUnivariateSpline |
# By Jake VanderPlas | |
# License: BSD-style | |
import matplotlib.pyplot as plt | |
import numpy as np | |
def discrete_cmap(N, base_cmap=None): | |
"""Create an N-bin discrete colormap from the specified input map""" |
Created from the plain text reference card on orgmode.org Download this file, and open it in Emacs org-mode!