Skip to content

Instantly share code, notes, and snippets.

View tpoerschke's full-sized avatar

Tim Poerschke tpoerschke

View GitHub Profile
@tpoerschke
tpoerschke / SimpleLoggingUtil.java
Created July 11, 2019 15:36
A simple logging class written in Java.
package logging;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.StandardOpenOption;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
@tpoerschke
tpoerschke / App.java
Created July 12, 2019 08:26
Simple encryption using transposition. that's all
package tcry.tcry;
import java.util.LinkedList;
import java.util.List;
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
@tpoerschke
tpoerschke / cowsay.py
Created October 24, 2019 07:47
Cowsay in Python
import sys
cow = """
\\
\ ( )
(oo)
)\.-----/(O O)
# ; / u
( . |} )
|/ `.;|/;
@tpoerschke
tpoerschke / christmas_tree.py
Created December 24, 2019 14:29
A blinky christmas tree animation with some options to make it your individual tree :D
from sys import stdout as out
import math
import random
import time
import os
clear_console = "clear" if os.name == "posix" else "cls"
class ChristmasTree: