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
| # http://stackoverflow.com/questions/21146211/ | |
| for i in $* | |
| do | |
| echo $i | |
| sed \ | |
| -e 's/get_progress(P_\([_A-Za-z0-9]*\))/progress\.\L\1/g' \ | |
| -e 's/set_progress(P_\([_A-Za-z0-9]*\), \([0-9_a-zA-Z+ -\.]*\))/progress\.\L\1 = \2/g' \ | |
| -e 's/P_\([_A-Z0-9]*\)/progress\.\L\1/g' \ | |
| $i > $i-low | |
| mv $i-low $i |
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/python | |
| # -*- coding: utf-8 -*- | |
| # This requires python3 | |
| # Add Freesound API key below | |
| # Needs "ids.txt" containing two columns, separated by " " and the second one = Sound ID | |
| # credits.txt will be overwritten (I think) | |
| # some of these might be useless |
NewerOlder