Skip to content

Instantly share code, notes, and snippets.

View atdr's full-sized avatar
👋

Andreas Richardson atdr

👋
View GitHub Profile
@atdr
atdr / GPX_analysis_step_complete.py
Created October 9, 2021 16:50 — forked from WouterNieuwerth/GPX_analysis_step_complete.py
GPX analysis - complete script
import gpxpy
import matplotlib.pyplot as plt
import datetime
from geopy import distance
from math import sqrt, floor
import numpy as np
import pandas as pd
import haversine
(\d+\.?\d*)\s?°C
\SI{$1}{\celsius}
([\d.]+)-([\d.]+)\s?nm
\SIrange{$1}{$2}{\\nano\metre}
@atdr
atdr / figExport.m
Last active November 7, 2019 13:54
MATLAB figure export
function figExport(w,h,name)
formatFig(w,h)
print(gcf, '-dpdf', [pwd '/figures/' name '.pdf']);
end
uniform vec4 Layer1;
uniform vec4 Layer2;
uniform float Input1;
uniform float Input2;
uniform sampler2D TEX0;
uniform sampler2D TEX1;
void main()
@atdr
atdr / index.html
Created July 12, 2017 21:01
YOURLS mods
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url=http://atdr.uk">
</head>
<body>
</body>
</html>
@atdr
atdr / new.html
Last active June 14, 2017 16:42
WordPress image caption styles with the Better Image Credits plugin in overlay mode, before and after adding theme support for HTML5 captions. https://bsqr.es/VzsXj
<figure id="attachment" class="wp-attachment">
<div class="credits-container wp-image">
<img class="wp-image" />
<div class="credits-overlay" />
</div>
<figcaption class="wp-caption-text" />
</figure>
<div id="attachment" class="wp-attachment">
<div class="credits-container wp-image">
<img class="wp-image" />
<div class="credits-overlay" />
</div>
<p class="wp-caption-text" />
</div>
@atdr
atdr / wp-featherlight-captions.css
Created December 22, 2016 01:14
Style the image captions generated by the WP Featherlight plugin
.featherlight-content .caption {
font-size: 1em;
font-weight: 300;
font-family: "PT Serif",serif;
}