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
| #!/usr/bin/env bash | |
| ################################################################################ | |
| # Name: rockbox_converter.sh | |
| # Authors: Rohan Barar | |
| # Revision: 19/11/2025 (DD/MM/YYYY) | |
| # Purpose: Recursively traverse a given input directory to convert all supported | |
| # audio files to 'Rockbox' compatible MP3 files, with a focus on | |
| # ensuring both track metadata (e.g. Title, Artist, Album, etc.) as | |
| # well as embedded album/cover are displayed correctly by Rockbox. | |
| # Usage: ./rockbox_converter.sh <input_dir> <output_dir> |
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
| format = """ | |
| [](fg:#5E5C64 bg:#241F31)\ | |
| $os$battery$username$hostname$shell\ | |
| [](fg:#5E5C64 bg:#241F31)\ | |
| $directory\ | |
| $git_branch\ | |
| $git_status\ | |
| $c\ | |
| $elixir\ | |
| $elm\ |
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
| def export_fc_to_csv(fc, out_csv): | |
| """ | |
| Export each vertex in a line or poly fc to a csv with OID | |
| user requested at http://arcpy.wordpress.com/about/#comment-348 | |
| example | |
| import geom_snippets | |
| geom_snippets.export_fc_to_csv(r"c:\proj\fc1.shp", r"c:\proj\fc1.csv") |