Skip to content

Instantly share code, notes, and snippets.

View gkalabin's full-sized avatar

Gregory Kalabin gkalabin

View GitHub Profile
@gkalabin
gkalabin / percentile.sh
Last active August 29, 2015 14:27 — forked from lewisd32/percentile.sh
Calculate percentile in bash
#!/bin/bash
# args are percentiles, stdin - integers one per line
set -o errexit
set -o nounset
set -o pipefail
tmp="$(mktemp -t percentile)"
trap "rm -f \"$tmp\"" EXIT
total=$(sort -n | tee "$tmp" | wc -l)
// https://victoriabeckham.landrover.com/js/ScrollAnimator.js?v=548
var ScrollAnimator = function() {
var settings = {},
page,
started = false,
paused = false,
animation = null;
var w = $(window),