Skip to content

Instantly share code, notes, and snippets.

View keckelt's full-sized avatar
🐋

Klaus Eckelt keckelt

🐋
View GitHub Profile
@keckelt
keckelt / MP4toGIF.sh
Created May 13, 2019 14:25
Video to GIF
ffmpeg -i video.mp4 -pix_fmt rgb24 image.gif
@keckelt
keckelt / Caleydo_checkout.sh
Created July 25, 2019 07:43
Checkout all Caleydo repos
# src: https://www.jakeworth.com/clone-all-of-an-organizations-git-repos/
curl -s https://api.github.com/orgs/Caleydo/repos?per_page=200 | \
ruby -e 'require "json"; JSON.load(STDIN.read).each \
{ |repo| %x[git clone -b develop \"#{repo["ssh_url"]}\" ]}'
@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
@keckelt
keckelt / .block
Last active January 17, 2020 16:10
Vega-Lite Bl.ocks example
license: bsd-3-clause
body {
margin: 20px 0px 0px 50px;
}
.formattext {
text-align: right;
}
.formatresult {
text-align: left;
@keckelt
keckelt / .VS Code Settings.md
Last active February 24, 2020 10:30
VS Code Settings

Global and phovea specific

@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
},
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フシギバナ,