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.7 | |
# Requires Python 3.7 to run all tests | |
# Requires arrow: "pip install arrow" | |
import datetime | |
import time | |
import arrow | |
import json |
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
package hello; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
@SpringBootApplication | |
public class Application { | |
public static void main(String[] args) { | |
SpringApplication.run(Application.class, args); |
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 colorsys | |
from itertools import cycle | |
from math import floor | |
import arcade | |
from arcade.color import WHITE, RED, GREEN, BLUE | |
from pyglet import gl | |
WINDOW_WIDTH = 1000 | |
WINDOW_HEIGHT = 600 |
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 | |
""" | |
Requires python 3 or higher | |
Usage: | |
This would lift a custom map, saved as "my_custom_map" by 8 blocks up vertically. | |
I doubt this will work with save files, but it should produce a new .timber file you can create a new game on | |
python --timber-path C:\Users\mitchell.ludwig\Documents\Timberborn\Maps\my_custom_map.timber --lift-by 8 | |
""" |
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 time import perf_counter_ns | |
NANOS_PER_SECOND = 1_000_000_000 | |
ITER_COUNT = 100_000 | |
biased_dict = {"one_key_to_rule_them_all": 42} | |
def first_1(): |