This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins
directory.
{% youtube oHg5SJYRHA0 %}
% Many a time we have HTML articles published across multiple pages. | |
% And sometimes we want to print all those pages as one PDF. | |
% Here is how to do it: | |
% - Print into PDF from the browser into files like p01.pdf, p02.pdf etc | |
% - Use LaTeX to assemble these into one PDF. | |
% | |
% Here is the example. The \includepdf command supports scaling too, | |
% and I'm sure some other interesting commands as well. | |
% | |
% [copylifted from: http://yusung.blogspot.com/2007/02/combine-several-pdf-files-using-latex.html] |
This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins
directory.
{% youtube oHg5SJYRHA0 %}
#!/usr/bin/env python | |
# Copyright: This document has been placed in the public domain. | |
""" | |
Taylor diagram (Taylor, 2001) implementation. | |
Note: If you have found these software useful for your research, I would | |
appreciate an acknowledgment. | |
""" |
calendar.division <- function(...) | |
{ | |
xyetc <- list(...) | |
subs <- dat[xyetc$subscripts,] | |
dates.fsubs <- dat[dat$yr == unique(subs$yr),] | |
y.start <- dates.fsubs$dotw[1] | |
y.end <- dates.fsubs$dotw[nrow(dates.fsubs)] | |
dates.len <- nrow(dates.fsubs) | |
adj.start <- dates.fsubs$woty[1] |
""" | |
required packages: | |
numpy | |
matplotlib | |
basemap: http://matplotlib.org/basemap/users/installing.html | |
shapely: https://pypi.python.org/pypi/Shapely | |
descartes: https://pypi.python.org/pypi/descartes | |
random | |
Last Update: May 13, 2019
Offline Version
from scipy.spatial.distance import pdist, squareform | |
import numpy as np | |
import copy | |
def distcorr(Xval, Yval, pval=True, nruns=500): | |
""" Compute the distance correlation function, returning the p-value. | |
Based on Satra/distcorr.py (gist aa3d19a12b74e9ab7941) | |
>>> a = [1,2,3,4,5] |
Here’s how to make animations like this one. It requires intermediate Unix command-line knowledge, to install some tools and to debug if they don’t work. You’ll need these utilities:
curl
(or you can translate to wget
)convert
and montage
, part of ImageMagickffmpeg
, plus whatever codecsparallel
, for iteration that’s nicer than shell for loops or xargs
zsh
for leading 0s in numerical ranges to work