Skip to content

Instantly share code, notes, and snippets.

View jonmmease's full-sized avatar

Jon Mease jonmmease

View GitHub Profile
@jonmmease
jonmmease / diamonds.csv
Last active May 31, 2024 11:56
Vega-Altair tutorial datasets
We can't make this file beautiful and searchable because it's too large.
"carat","cut","color","clarity","depth","table","price","x","y","z"
0.23,"Ideal","E","SI2",61.5,55,326,3.95,3.98,2.43
0.21,"Premium","E","SI1",59.8,61,326,3.89,3.84,2.31
0.23,"Good","E","VS1",56.9,65,327,4.05,4.07,2.31
0.29,"Premium","I","VS2",62.4,58,334,4.2,4.23,2.63
0.31,"Good","J","SI2",63.3,58,335,4.34,4.35,2.75
0.24,"Very Good","J","VVS2",62.8,57,336,3.94,3.96,2.48
0.24,"Very Good","I","VVS1",62.3,57,336,3.95,3.98,2.47
0.26,"Very Good","H","SI1",61.9,55,337,4.07,4.11,2.53
0.22,"Fair","E","VS2",65.1,61,337,3.87,3.78,2.49
@jonmmease
jonmmease / pixi.log
Last active August 21, 2023 16:39
pixi log with successful retries
2023-08-21T16:25:43.7731291Z .\pixi.exe install -vvv
2023-08-21T16:25:43.7731593Z .\pixi.exe run python --version
2023-08-21T16:25:43.7798664Z shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
2023-08-21T16:25:43.7798992Z ##[endgroup]
2023-08-21T16:25:44.4837907Z DEBUG validating{path=C:\Users\runneradmin\AppData\Local\rattler/cache\pkgs\pyarrow-12.0.1-py310hd1a9178_8_cpu}: rattler::package_cache: downloading https://conda.anaconda.org/conda-forge/win-64/pyarrow-12.0.1-py310hd1a9178_8_cpu.conda to C:\Users\runneradmin\AppData\Local\rattler/cache\pkgs\pyarrow-12.0.1-py310hd1a9178_8_cpu
2023-08-21T16:25:44.4886259Z DEBUG validating{path=C:\Users\runneradmin\AppData\Local\rattler/cache\pkgs\psutil-5.9.5-py310h8d17308_0}: rattler::package_cache: downloading https://conda.anaconda.org/conda-forge/win-64/psutil-5.9.5-py310h8d17308_0.conda to C:\Users\runneradmin\AppData\Local\rattler/cache\pkgs\psutil-5.9.5-py310h8d17308_0
2023-08-21T16:25:44.4891858Z DEBUG validating{path=C:\Us
@jonmmease
jonmmease / pixi_trace.log
Created August 20, 2023 18:49
Pixi windows io error trace
2023-08-20T18:36:18.1591902Z ##[group]Run pixi install -vvv
2023-08-20T18:36:18.1592310Z pixi install -vvv
2023-08-20T18:36:18.1592559Z pixi run python --version
2023-08-20T18:36:18.1629859Z shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
2023-08-20T18:36:18.1630188Z ##[endgroup]
2023-08-20T18:36:18.8065620Z DEBUG validating{path=C:\Users\runneradmin\AppData\Local\rattler/cache\pkgs\pyarrow-12.0.1-py310hd1a9178_8_cpu}: rattler::package_cache: downloading https://conda.anaconda.org/conda-forge/win-64/pyarrow-12.0.1-py310hd1a9178_8_cpu.conda to C:\Users\runneradmin\AppData\Local\rattler/cache\pkgs\pyarrow-12.0.1-py310hd1a9178_8_cpu
2023-08-20T18:36:18.8067229Z DEBUG validating{path=C:\Users\runneradmin\AppData\Local\rattler/cache\pkgs\psutil-5.9.5-py310h8d17308_0}: rattler::package_cache: downloading https://conda.anaconda.org/conda-forge/win-64/psutil-5.9.5-py310h8d17308_0.conda to C:\Users\runneradmin\AppData\Local\rattler/cache\pkgs\psutil-5.9.5-py310h8d17308_0
2023-08-
@jonmmease
jonmmease / spec.json
Created July 17, 2023 12:54
VegaFusion_GH_361
{
"config": {
"axis": {"labelFontSize": 14, "titleFontSize": 14},
"header": {"labelFontSize": 14, "titleFontSize": 14},
"legend": {"labelFontSize": 14, "titleFontSize": 14},
"title": {"align": "center", "fontSize": 20, "offset": 15}
},
"vconcat": [
{
"facet": {
@jonmmease
jonmmease / spec.json
Created July 17, 2023 12:35
VegaFusion_GH_361
{
"config": {
"axis": {"labelFontSize": 14, "titleFontSize": 14},
"header": {"labelFontSize": 14, "titleFontSize": 14},
"legend": {"labelFontSize": 14, "titleFontSize": 14},
"title": {"align": "center", "fontSize": 20, "offset": 15}
},
"vconcat": [
{
"facet": {
@jonmmease
jonmmease / spec.json
Created November 16, 2022 12:45
Vega-Lite Histogram
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {"url": "data/movies.json"},
"mark": "bar",
"encoding": {
"x": {"bin": true, "field": "IMDB Rating"},
"y": {"aggregate": "count"}
}
}
@jonmmease
jonmmease / spec.json
Created November 15, 2022 14:17
drilldown_timeunit_bar
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {"url": "data/seattle-weather.csv"},
"width": 600,
"layer": [
{
"params": [
{"name": "brush", "select": {"type": "interval", "encodings": ["x"]}}
],
"mark": "bar",
@jonmmease
jonmmease / spec.json
Created November 7, 2022 17:38
drilldown_dataset
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {"url": "data/cars.json"},
"layer": [
{
"params": [
{"name": "brush", "select": {"type": "interval", "encodings": ["x"]}}
],
"mark": "bar",
"encoding": {
@jonmmease
jonmmease / spec.json
Created November 7, 2022 17:17
histogram_drilldown
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {"url": "data/cars.json"},
"layer": [
{
"params": [
{"name": "brush", "select": {"type": "interval", "encodings": ["x"]}}
],
"mark": "bar",
"encoding": {
@jonmmease
jonmmease / spec.json
Created September 20, 2022 12:23
crossfilter_with_output_dataset
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"title": "Seattle Weather, 2012-2015",
"data": {"url": "data/seattle-weather.csv"},
"vconcat": [
{
"layer": [
{
"mark": {"type": "rect", "width": 1, "height": 1},
"encoding": {"opacity": {"value": 0}},