Skip to content

Instantly share code, notes, and snippets.

@kjell
kjell / index.js
Created March 7, 2015 22:18
requirebin sketch
d3 = require('d3')
console.log(d3)
{
"aggs": {
"artist": {
"terms": {"script": "a = doc['artist.raw'].value.toLowerCase(); a ? a[0] : '_'", "size": 50, "order": { "_term": "asc" }},
"aggs": {
"byName": {"terms": {"field": "artist.raw", "size": 5000, "order": { "_term": "asc" }}}
}
}
}
}
@kjell
kjell / Makefile
Last active August 29, 2015 14:14
paige-clusters.md: paige-clusters.docx
w2m $< > $@;
clusters-by-accession:
gsed -r ' \
s/^\*+(G[0-9]{3}).*$$/\1/; \
s/(([^ ]\.)?[0-9]+\.[^ ]+)\s.*/##\1/g; \
s/.*##//' paige-clusters.md \
| grep -v '|' | grep -v '^$$' \
| tail -n+2 \
2014_TDX_MIAArtStories_308.tif 220 165
2014_TDX_MIAArtStories_278.tif 235 184
2014_TDX_MIAArtStories_251.tif 180 250
2014_TDX_MIAArtStories_365.tif 215 240
2014_TDX_MIAArtStories_046.tif 212 283
2014_TDX_MIAArtStories_046.jpg 212 283
2014_TDX_MIAArtStories_295.tif 197 315
2014_TDX_MIAArtStories_142.jpg 300 225
2014_TDX_MIAArtStories_142.tif 300 225
2014_TDX_MIAArtStories_138.tif 270 315
{
"title": "Veiled Lady",
"recordType": "object",
"views": [
{
"annotations": [
{
"geoJSON": {
"type": "Feature",
"properties": {},
19 "Fukuda Kodōjin","Japanese, 1865 - 1944"
15 "Aristide Maillol","French, 1861 - 1944"
9 "Heinrich Keuhn","Austrian (born Germany), 1866-1944"
8 "Ker-Xavier Roussel","French, 1867 - 1944"
8 "Edvard Munch","Norwegian, 1863 - 1944"
7 "Vassily Kandinsky","Russian, 1866-1944"
7 "Piet Mondrian","Dutch, 1872 - 1944"
6 "Josef Maria Eder","Austrian, 1855 - 1944"
4 "Yamakawa Shūhō","Japanese, 1898 - 1944"
2 "Takahashi Hiroaki","Japanese, 1871 - 1944"
@kjell
kjell / -
Created December 9, 2014 00:37
commit 51202627eed0125a8e8532037e77242ecba49b12
Author: Kjell <[email protected]>
Date: Mon Dec 8 17:18:19 2014 -0600
new content from today's workshop
art/celestial-horse.md | 30 +++++++++++
art/curator-s-office.md | 44 ++++++++++++++++
art/doryphoros.md | 31 +++++++++++
...om-the-series-thirty-six-views-of-mount-fuji.md | 20 +++++++
@kjell
kjell / index.js
Last active August 29, 2015 14:07
var d3 = require('d3')
document.addEventListener("DOMContentLoaded", function() {
var body = d3.select("body")
body.style('height', '3000px')
var width = window.innerWidth,
height = getHeight()
function getHeight() {
> ag -l '"image": "valid"' objects | xargs ag -l '"image_width": 0' | cut -d'/' -f3 | cut -d'.' -f1
131
153
226
494
654
669
823
980
1127
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.