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
use std::{ | |
fmt::{Display, Formatter}, | |
io::Write, | |
}; | |
// Gibt es einen Unterschied zwischen | |
// static WINCOM: [[usize; 3]; 8] = ... // und | |
// const WINCOM: &'static [[usize; 3]; 8] // ? | |
// Außer, dass ich bei expliziter Static-Lifetime eine Refernz angeben muss? | |
static WINNING_COMBINATIONS: [[usize; 3]; 8] = [ |
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
version: "3" | |
networks: | |
gitea: | |
volumes: | |
database: | |
gitea: | |
services: |
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 io.javalin.core.security.BasicAuthCredentials; | |
import io.javalin.core.util.Header; | |
import io.javalin.http.Context; | |
import io.javalin.http.Handler; | |
import io.javalin.http.UnauthorizedResponse; | |
import org.jetbrains.annotations.NotNull; | |
public class BasicAuthenticationHandler implements Handler { | |
private final BasicAuthCredentials credentials; |
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 os import system | |
from colorama import Fore | |
from requests import get | |
class Part: | |
def __init__(self, part): | |
parts = part.split("\n") | |
self.time = parts[0] |
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 javafx.application.Platform; | |
import javafx.stage.Stage; | |
import javafx.stage.WindowEvent; | |
import java.util.Timer; | |
import java.util.TimerTask; | |
public class AnimatedTitle { | |
public interface Animation { |