Skip to content

Commit

Permalink
hotfix0s.py (#30): started hotfix0s.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fititnt committed Apr 19, 2022
1 parent 8f6bd4a commit dfd55a7
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
28 changes: 28 additions & 0 deletions officinam/999999999/0/hotfix0s.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/env python3
# ==============================================================================
#
# FILE: hotfix0s.py
#
# USAGE: ./999999999/0/hotfix0s.py
# ./999999999/0/hotfix0s.py --help
#
# DESCRIPTION: ---
#
# OPTIONS: ---
#
# REQUIREMENTS: - python3
# BUGS: ---
# NOTES: ---
# AUTHORS: Emerson Rocha <rocha[at]ieee.org>
# COLLABORATORS:
# <@TODO: put additional non-anonymous names here>
#
# COMPANY: EticaAI
# LICENSE: Public Domain dedication or Zero-Clause BSD
# SPDX-License-Identifier: Unlicense OR 0BSD
# VERSION: v1.0.0
# CREATED: 2022-04-19 21:46 UTC
# REVISION: ---
# ==============================================================================

print("TODO")
7 changes: 7 additions & 0 deletions officinam/999999999/0/xlsx-csv-zeroes.mlr
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
map inrec = $*;
$* = {};
for (oldkey, value in inrec) {
# newkey = clean_whitespace(gsub(oldkey, "\n", " "));
newkey = gsub(oldkey, ".0", "");
$[newkey] = value;
}
6 changes: 6 additions & 0 deletions officinam/999999999/999999999.lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,12 @@ file_convert_csv_de_downloaded_xlsx() {
#
# mlr --csv head -n 2 999999/0/1603_1_1--old.csv

# @TODO: simplesmente criar um script python em vez de usar ferramenta
# externa para resolver os .0 do final. Ja reduz mais dependencias
# desnecessarias

# mlr --csv put -f 999999999/0/xlsx-csv-zeroes.mlr 999999/0/1603_1_1--old.csv



# mlr --csv cat 999999/0/1603_45_1.csv
Expand Down

0 comments on commit dfd55a7

Please sign in to comment.