Skip to content

Instantly share code, notes, and snippets.

View keckelt's full-sized avatar
🐋

Klaus Eckelt keckelt

🐋
View GitHub Profile
@keckelt
keckelt / emojy_isotype.vl.json
Created November 30, 2020 09:55
Sentiment Emojy Isotype Plot
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"config": {"view": {"stroke": ""}},
"width": 800,
"height": 200,
"data": {
"values": [
{"country": "United States", "animal": "cattle"},
{"country": "United States", "animal": "cattle"},
{"country": "United States", "animal": "cattle"},
@keckelt
keckelt / diverging_bar_chart.vl.json
Last active November 25, 2020 13:11
Team Changes - Diverging Bar Chart
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"description": "Bar chart with text labels. Apply scale padding to make the frame cover the labels.",
"data": {
"values": [
{"a": "Avengers", "b": -0.5},
{"a": "Masters of the Universe", "b": 0.6},
{"a": "X-Men", "b": 0.0}
]
},
@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",
@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 / 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 / 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 / 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 / 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 / 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}
]
},