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
# -*- coding: utf-8 -*- | |
# only for windows (7+) | |
# require: python 3.x, pillow | |
""" | |
This script file is assumed to be managed by three aliases: | |
* windows_themepack_builder.py | |
* windows_soundscheme_pcglobal.py | |
* windows_cursorscheme_pcglobal.py | |
Hard link should be done: | |
$ ln windows_themepack_builder.py windows_soundscheme_pcglobal.py |
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
#! py -3 | |
# -*- coding: utf-8 -*- | |
# required: python3, mako, dateutil | |
r""" | |
easiest usage: | |
$ python3 mpplgen.py out.m3u8 --from_askopenfilenames --postproc_simple_editor | |
from pattern: | |
$ python3 mpplgen.py out.m3u8 --from_pattern='[1-3]*.wav' |
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
# -*- coding: utf-8 -*- | |
import io | |
import sys | |
import os | |
import re | |
import json | |
import ctypes | |
__MYNAME__, _ = os.path.splitext( |
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
#! py -3 | |
# -*- coding: utf-8 -*- | |
import sys | |
import os | |
import time | |
import ctypes | |
import functools | |
from glob import glob | |
from fnmatch import fnmatch | |
from datetime import datetime |
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
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
import sys | |
import re | |
import time | |
import operator | |
import functools |
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
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
from __future__ import unicode_literals | |
import os | |
import sys | |
import pipes | |
import re | |
import psutil # pip install psutil |
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
# -*- coding: utf-8 -*- | |
import sys | |
import time | |
from datetime import datetime | |
import curses | |
import psutil | |
class _Main(object): | |
def __init__(self): |
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
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
from __future__ import print_function | |
import io | |
import sys | |
import re | |
import os | |
import datetime | |
from collections import namedtuple |
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
# -*- coding: utf-8 -*- | |
import sys | |
import time | |
from datetime import datetime, timedelta | |
from PIL import Image, ImageDraw, ImageFont | |
import curses | |
class _Main(object): | |
def __init__(self, fontname, fontsize, beep_after): |
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
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
import sys | |
import subprocess | |
if hasattr("", "decode"): | |
_encode = lambda s: s.encode(sys.getfilesystemencoding()) | |
else: |