From 0cfb6e999e3f77f98254b4a47e8ef9c258890e8d Mon Sep 17 00:00:00 2001 From: typebrook Date: Mon, 20 Jan 2020 14:24:11 +0800 Subject: update --- alias | 5 ++++- scripts/csv2geojson | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/alias b/alias index 2875877..889fdaf 100644 --- a/alias +++ b/alias @@ -49,13 +49,16 @@ alias ld='cd -' # last directory cdg(){ cd ~/git/$1 } -alias cdgg='cd ~/git/gist' alias cda='cd ~/data' alias cdd='cd ~/Downloads' alias cdD='cd ~/Documents' alias cdV='cd ~/Videos' alias cdP='cd ~/Pictures' +# gist +alias gn='gist new' +alias cdgg='cd ~/git/gist' + # about custom settings alias cds='cd $SETTING_DIR' alias cdss='cd $SETTING_DIR/scripts' diff --git a/scripts/csv2geojson b/scripts/csv2geojson index 085e12e..d719801 100755 --- a/scripts/csv2geojson +++ b/scripts/csv2geojson @@ -40,4 +40,6 @@ jq -s '.[0][2:] as $fields | .[1:][] | [.[0], .[1], ([$fields, .[2:]] | transpos # create array of geojson point features jq '{"type": "Feature", "properties": .[2], "geometry":{ "type": "Point", "coordinates": [(.[0] | tonumber), (.[1] | tonumber)] } }' |\ # wrap features as geojson format -jq -s '{"type": "FeatureCollection", "features": .}' +jq -s '{"type": "FeatureCollection", "features": .}' |\ +tee /tmp/geojson +echo stored into /tmp/geojson -- cgit v1.2.3-70-g09d2