This file contains 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
""" Export AI format for android format """ | |
import os | |
import re | |
import shutil | |
import argparse | |
def copy_assets(source_dir='.', destination_dir='.', override=False, is_clean=False): | |
""" Copy assets from source to destination """ | |
for item in os.listdir(source_dir): |
This file contains 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
map(float, ["1", "2", "3"]) # output: [1.0, 2.0, 3.0] |
This file contains 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 python | |
import threading | |
import time | |
class TrackingThread(threading.Thread): | |
def __init__(self, *args, **kwargs): | |
super(TrackingThread, self).__init__(*args, **kwargs) | |
self._stop = threading.Event() |
This file contains 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
ALBUMS_DIR = '/home/edil/Downloads/Muse Japan CD' | |
def convert_files(dir) | |
puts '--' + dir + '--' | |
Dir.entries(dir).each do |track| | |
if track == '.' or track == '..' | |
next | |
end |
This file contains 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 | |
# You should install "mpcdec" for converting mpc files | |
# Ubuntu: apt-get install musepack-tools | |
import os | |
import subprocess | |
for file_mpc in os.listdir("."): | |
file_info = os.path.splitext(file_mpc) |