This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// @file utils.h | |
| /// @brief Lib of utils written in C with love and hate by @grejc | |
| /// | |
| /// Features: | |
| /// - Terminal colors, TrueColor & ANSI detection [54:360] | |
| /// - Styled print_error & print_success macros [363:487] | |
| /// - Styled test macros & semantic assertions [489:1157] | |
| /// - Box utils [1159:1281] | |
| /// - Table utils (incluindo alignment, word-wrap e TableAuto) [1283:1845] | |
| /// - Modern Test Runner Engine (accumulator & summary table) [1847:2163] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ---- CSV Visualizer ---- | |
| viewcsv() { | |
| if [ -z "$1" ]; then | |
| echo "Uso: viewcsv <arquivo.csv> [num_linhas]" >&2 | |
| return 1 | |
| fi | |
| python3 -c ' | |
| import sys, csv, unicodedata |