Skip to content

Instantly share code, notes, and snippets.

View widged's full-sized avatar

Marielle Lange widged

View GitHub Profile
@kottenator
kottenator / simple-pagination.js
Created July 13, 2015 20:44
Simple pagination algorithm
// Implementation in ES6
function pagination(c, m) {
var current = c,
last = m,
delta = 2,
left = current - delta,
right = current + delta + 1,
range = [],
rangeWithDots = [],
l;
@wpoely86
wpoely86 / README.md
Last active March 14, 2023 22:07
Diverging Stacked Bar Chart

Diverging Stacked Bar Chart

We create a diverging stacked bar chart to plot a 5 point Likert scale. There a lots of ways to plot a Likert scale but according to Robbins & Heiberger, a diverging stacked bar chart is the best and I agree.

I've used D3.js. There is also an R package by Robbins & Heiberger.

The original can be found at github

@tomgp
tomgp / bertin500x490.jpg
Last active October 12, 2015 10:42
Vibrational effect 1
bertin500x490.jpg
@tomgp
tomgp / .gitignore
Last active December 30, 2015 02:59
Ternary Plot refactoring.
notional2005result.csv
notional2005result.json
@tomgp
tomgp / index.html
Last active December 29, 2015 12:59 — forked from widged/index.html
Ternary plot
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>D3 Ternary Plot</title>
<style>
a{
font-family: sans-serif;
color: #DB7365;
padding: 0.3rem;
@widged
widged / README.md
Last active December 11, 2015 04:48
D3 for layout management
@widged
widged / README.md
Last active March 6, 2024 23:47
Quick coloring book in SVG
@widged
widged / README.md
Last active June 13, 2021 09:49
D3 companion planting
@leoniedu
leoniedu / Installing R on dreamhost
Created June 26, 2009 20:23
Installing R on dreamhost
## First do the unix account setup http://wiki.dreamhost.com/Unix_account_setup
cd ${HOME}
# create the first level directories (and log/setup)
mkdir -pv soft run www log log/setup backup data
# create the second level directories within run (our own FHS)
for subdir in bin etc include lib man share
do
mkdir -pv run/${subdir}
done
# symlink so that man pages stay all in the same place