Skip to content

Instantly share code, notes, and snippets.

View keckelt's full-sized avatar
🐋

Klaus Eckelt keckelt

🐋
View GitHub Profile
@keckelt
keckelt / facetted_scatterplot.vl.json
Created March 24, 2020 15:00
Facetted Cars Scatterplot
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"data": {"url": "data/cars.json"},
"mark": {"type": "point", "tooltip": true},
"encoding": {
"x": {"field": "Horsepower", "type": "quantitative"},
"y": {"field": "Miles_per_Gallon", "type": "quantitative"},
"color": {"field": "Origin", "type": "nominal"},
"opacity": {"value": 0.5},
"row": {"field": "Origin", "type": "ordinal"}
@keckelt
keckelt / custom color scheme.vl.json
Created April 2, 2020 04:57
Vega Lite Custom Color Scheme
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"description": "A simple bar chart with embedded data.",
"data": {
"values": [
{"a": "A", "b": 28}, {"a": "B", "b": 55}, {"a": "C", "b": 43},
{"a": "D", "b": 91}, {"a": "E", "b": 81}, {"a": "F", "b": 53},
{"a": "G", "b": 19}, {"a": "H", "b": 87}, {"a": "I", "b": 52}
]
},
@keckelt
keckelt / README.md
Last active August 25, 2020 13:10
Notebook Provenance Setup Instructions

Setup Jupyterlab Extension

Create workspace:

mkdir notebook_provenance
cd notebook_provenance/

Prepare conda enrivonment

@keckelt
keckelt / README.md
Last active June 19, 2020 10:03
Unwatch Github Organization

Bulk unsubscribe from all repos of an organization.

How To:

  1. Go to: https://github.com/watching
  2. Open Console
  3. Paste the script adjusting your:
  • Organization Name (here: jku-icg-classroom)
  • Watch Settings:
    • included = Not watching (Be notified only when participating or @mentioned.)
  • release_only = Releases only (Be notified of new releases, and when participating or @mentioned.)
@keckelt
keckelt / nintendo.vl.json
Created July 16, 2020 10:27
Nintendo Console Sales
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"description": "A simple bar chart with embedded data.",
"data": {
"values": [
{"console": "NES", "sales": 61.2},
{"console": "SNES", "sales": 49.1},
{"console": "N64", "sales": 33},
{"console": "GC", "sales": 21.7},
{"console": "Wii", "sales": 101.6},
@keckelt
keckelt / launch.json
Last active August 19, 2020 16:27
VS Code Debug Settings
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch FireFox", // install https://marketplace.visualstudio.com/items?itemName=firefox-devtools.vscode-firefox-debug
"type": "firefox",
"request": "launch",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}",
"pathMappings": [
@keckelt
keckelt / drag_voronoi.vg.json
Created September 10, 2020 15:58
Dragable marks in Voronoi Diagram
{
"$schema": "https://vega.github.io/schema/vega/v4.json",
"width": 500,
"height": 200,
"autosize": "none",
"signals": [
{
"name": "whichPoint",
"on": [
{
@keckelt
keckelt / density_drag_split.vg.json
Created September 10, 2020 16:45
Density with dynamic split rules
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"background": "white",
"padding": 5,
"width": 400,
"height": 300,
"style": "cell",
"data": [
{
"name": "source_0",