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
public class Application { | |
public static void main(String[] args) throws IOException, FontFormatException, URISyntaxException { | |
new Application().run(); | |
} | |
private void run() throws IOException, FontFormatException, URISyntaxException { | |
URL resource = getClass().getClassLoader().getResource("square.ttf"); | |
File fontFile = new File(resource.toURI()); | |
Font font = Font.createFont(Font.TRUETYPE_FONT, fontFile); | |
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
# Described in As found in https://arxiv.org/pdf/2110.01111.pdf. | |
import random | |
def generate_random_list(size, min_value=0, max_value=10): | |
return random.sample(range(min_value, max_value), size) | |
def simple_sort(lst): | |
for i in range(len(lst)): | |
for j in range(len(lst)): | |
if lst[i] < lst[j]: |
OlderNewer