Skip to content

Instantly share code, notes, and snippets.

View connorgr's full-sized avatar

Connor Gramazio connorgr

View GitHub Profile

This interactive demo shows how changing the size and percent arguments affects just noticeable difference intervals for CIELAB L* (lightness), a* (redness-to-greenness), and b* (blueness-to-yellowness) color channels. It builds on the d3-jnd library, which extends D3 and was developed by Connor Gramazio using empirical work by Maureen Stone, Daniel Albers Szafir, and Vidya Setlur.

@connorgr
connorgr / compileXLSXTable.py
Created May 19, 2016 15:29
Convert an XLSX file to a LaTeX table
'''
A simple script for creating LaTeX tables from XLSX files. The script assumes
that the LaTeX document includes booktabs and tabularx packages.
To install pyexcel_xlsx, run ``pip install pyexcel-xlsx``.
https://github.com/pyexcel/pyexcel-xlsx
'''
import argparse
from pyexcel_xlsx import get_data
@connorgr
connorgr / README.md
Created February 20, 2016 22:34
fibonacci coloring
@connorgr
connorgr / gist:0a10b8ef5d99e62c8cac
Created April 6, 2015 22:25
Matlab continuous color scales
var matlab = {
parula:["rgb(53,42,135)","rgb(54,48,147)","rgb(54,55,160)","rgb(53,61,173)","rgb(50,67,186)","rgb(44,74,199)","rgb(32,83,212)","rgb(15,92,221)","rgb(3,99,225)","rgb(2,104,225)","rgb(4,109,224)","rgb(8,113,222)","rgb(13,117,220)","rgb(16,121,218)","rgb(18,125,216)","rgb(20,129,214)","rgb(20,133,212)","rgb(19,137,211)","rgb(16,142,210)","rgb(12,147,210)","rgb(9,152,209)","rgb(7,156,207)","rgb(6,160,205)","rgb(6,164,202)","rgb(6,167,198)","rgb(7,169,194)","rgb(10,172,190)","rgb(15,174,185)","rgb(21,177,180)","rgb(29,179,175)","rgb(37,181,169)","rgb(46,183,164)","rgb(56,185,158)","rgb(66,187,152)","rgb(77,188,146)","rgb(89,189,140)","rgb(101,190,134)","rgb(113,191,128)","rgb(124,191,123)","rgb(135,191,119)","rgb(146,191,115)","rgb(156,191,111)","rgb(165,190,107)","rgb(174,190,103)","rgb(183,189,100)","rgb(192,188,96)","rgb(200,188,93)","rgb(209,187,89)","rgb(217,186,86)","rgb(225,185,82)","rgb(233,185,78)","rgb(241,185,74)","rgb(248,187,68)","rgb(253,190,61)","rgb(255,195,55)","rgb(254,200,50)","