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
| from subprocess import check_output, call, DEVNULL | |
| from json import loads | |
| from os import makedirs | |
| from os.path import join, exists, splitext | |
| from string import ascii_letters, digits | |
| # if your ffmpeg commands are different, change them here | |
| FFMPEG = "ffmpeg" | |
| FFPROBE = "ffprobe" |
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
| import re | |
| import glob | |
| import os | |
| import os.path | |
| def camelCaseSplit(identifier): | |
| matches = [m.group(0) for m in re.finditer('.+?(?:(?<=[a-z])(?=[_A-Z])|(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])|$)', identifier)] | |
| s = matches[0] | |
| for i in range(1, len(matches)): | |
| if matches[i][0] == "_": |
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
| from translate_api.translate_api import api | |
| import re | |
| import glob | |
| import os | |
| cache = dict() | |
| def camelCaseSplit(identifier): | |
| matches = re.finditer('.+?(?:(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])|$)', identifier) | |
| return [m.group(0) for m in matches] |
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
| import os | |
| import requests | |
| import json | |
| from os import listdir | |
| import urllib | |
| urllib.urlretrieve("https://raw.githubusercontent.com/endless-sky/endless-sky/master/data/map.txt", "map.txt") | |
| images = requests.get("http://api.github.com/repos/endless-sky/endless-sky/contents/images/land") |
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/env python | |
| from gimpfu import * | |
| import glob | |
| import os | |
| pdb = gimp.pdb | |
| def vadimsbatch(loadfolder, fileextension, frame): |
NewerOlder