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 python3 | |
with open('stations.txt') as handle: | |
stations = [line.rstrip() for line in handle] | |
def make_ingredients(name): | |
return [letter for letter in sorted(name.lower()) if letter.isalpha()] | |
possibilities = {station: make_ingredients(station) for station in stations} |
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 python3 | |
import glob | |
import os | |
import re | |
# Path to OpenRCT2 windows | |
WINDOWS = '/Users/aaron/Projects/OpenRCT2/OpenRCT2/src/openrct2-ui/windows/*.cpp' |
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 python3 | |
import re | |
import sys | |
def prepareEnv(env): | |
new_env = {} | |
for k in sorted(env, key=len, reverse=True): | |
new_env[k] = env[k] |
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
<?php | |
const REFERENCE_LANGUAGE = 'en-GB'; | |
const TARGET_LANGUAGE = 'pt-BR'; | |
// Strings to take as a template. | |
$reference_table = yaml_parse_file(REFERENCE_LANGUAGE . ".yml"); | |
function tokeniseStringTable($string_table) | |
{ |