Skip to content

Instantly share code, notes, and snippets.

# 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
@qubodup
qubodup / Freesound credits from ids
Last active December 16, 2015 01:09
# This requires python3 # Add Freesound API key below, have "ids.txt" that contains two columns, separated by " " and the second one contains the ID # credits.txt will be overwritten (I think)
#!/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