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"}
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 41 columns, instead of 31 in line 3.
abilities,against_bug,against_dark,against_dragon,against_electric,against_fairy,against_fight,against_fire,against_flying,against_ghost,against_grass,against_ground,against_ice,against_normal,against_poison,against_psychic,against_rock,against_steel,against_water,attack,base_egg_steps,base_happiness,base_total,capture_rate,classfication,defense,experience_growth,height_m,hp,japanese_name,name,percentage_male,pokedex_number,sp_attack,sp_defense,speed,type1,type2,weight_kg,generation,is_legendary
"['Overgrow', 'Chlorophyll']",1,1,1,0.5,0.5,0.5,2,2,1,0.25,1,2,1,1,2,1,1,0.5,49,5120,70,318,45,Seed Pokémon,49,1059860,0.7,45,Fushigidaneフシギダネ,Bulbasaur,88.1,1,65,65,45,grass,poison,6.9,1,0
"['Overgrow', 'Chlorophyll']",1,1,1,0.5,0.5,0.5,2,2,1,0.25,1,2,1,1,2,1,1,0.5,62,5120,70,405,45,Seed Pokémon,63,1059860,1.0,60,Fushigisouフシギソウ,Ivysaur,88.1,2,80,80,60,grass,poison,13.0,1,0
"['Overgrow', 'Chlorophyll']",1,1,1,0.5,0.5,0.5,2,2,1,0.25,1,2,1,1,2,1,1,0.5,100,5120,70,625,45,Seed Pokémon,123,1059860,2.0,80,Fushigibanaフシギバナ,
@keckelt
keckelt / Grouped_Area_chart.vl.json
Last active April 1, 2020 08:57
An area chart of three categorical attributes
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"data": {"url": "data/cars.json"},
"mark": {"type": "square", "tooltip": true},
"encoding": {
"y": {
"field": "Origin",
"type": "nominal",
"axis": null
},
@keckelt
keckelt / .VS Code Settings.md
Last active February 24, 2020 10:30
VS Code Settings

Global and phovea specific

body {
margin: 20px 0px 0px 50px;
}
.formattext {
text-align: right;
}
.formatresult {
text-align: left;
@keckelt
keckelt / .block
Last active January 17, 2020 16:10
Vega-Lite Bl.ocks example
license: bsd-3-clause
@keckelt
keckelt / debug14661.log
Created December 12, 2019 08:19
ptvsd debug.log
2019-12-12, 08:01:15.632 UTC
[08:01:15.633 UTC] Started @ Thu Dec 12 2019 09:01:15 GMT+0100 (Central European Standard Time)
[08:01:15.634 UTC] From Client:
[08:01:15.634 UTC] Content-Length: 313
{"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"python","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us"},"type":"request","seq":1}
[08:01:15.634 UTC] To Client:
[08:01:15.634 UTC] Content-Length: 761
{"seq":1,"type":"response","request_seq":1,"command":"initialize","success":true,"body":{"supportsExceptionInfoRequest":true,"supportsConfigurationDoneRequest":true,"supportsDelayedStackTraceLoading":true,"supportsConditionalBreakpoints":true,"supportsSetVariable":true,"supportsExceptionOptions":true,"supportsGotoTargetsRequest":true,"supportsEvaluateForHovers":true,"supportsModulesRequest":true,"supportsValueFormattingOptions":true,"suppo