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
| #!/bin/bash | |
| #Spawns n threads for transcoding n (all) m4a files in a folder into mp3 files | |
| #for better thread managment using the following command with gnu parallel | |
| # parallel ffmpeg -hide_banner -loglevel panic -i "{}" -acodec libmp3lame -ab 192K newfiles/"{.}.mp3" ::: *.m4a | |
| for f in *.m4a; | |
| do | |
| ffmpeg -hide_banner -loglevel panic -i "$f" -acodec libmp3lame -ab 192K newfiles/"${f%.m4a}.mp3" & |
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
| function play(state){ | |
| var marching_order = state.turn; | |
| //console.log(state.turn); | |
| //sort the others array so the weaker ones are attacked first | |
| if (state.others[0]){ | |
| state.others.sort(function (a, b) { | |
| if (a.wrenches > b.wrenches) { | |
| return 1; |