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
import os | |
from itertools import product | |
from nbt.chunk import AnvilChunk | |
from nbt.world import AnvilWorldFolder | |
def main(): | |
search_terms = ['netherite', 'allthemod'] |
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
import glob | |
import os | |
from argparse import ArgumentParser | |
import matplotlib.pyplot as plt | |
if __name__ == '__main__': | |
arg_parser = ArgumentParser(description='produce a line length histogram for a source folder') | |
arg_parser.add_argument('source') |
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
from cartopy.crs import PlateCarree, TransverseMercator | |
plate_carree = PlateCarree() | |
trans_merc = TransverseMercator() | |
print trans_merc.transform_point(1, 55, src_crs=plate_carree) |
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
mins_per_day = 24 * 60 | |
def identify_overtakes(num_hours): | |
num_mins = num_hours * 60 | |
overtakes = [] | |
last_diffs = [0.0, 0.0] | |
for i in xrange(num_mins): |