Skip to content

Instantly share code, notes, and snippets.

@rik-degraaff
rik-degraaff / Main.java
Last active November 5, 2017 13:28 — forked from pablogrisafi1975/Main.java
Lists with compile time check over length
import java.util.Arrays;
import java.util.List;
public class Main {
static abstract class Num{
public abstract int n();
static class N0 extends N1{
@Override
public int n() {
return 0;
@rik-degraaff
rik-degraaff / Matrix.java
Last active October 29, 2017 18:10
JMatrix stuff
import integers.*;
public interface Matrix<N extends _N, M extends _N> {
public double getElementAt(int x, int y);
public void setElementAt(int x, int y, double value);
public int numRows();
public int numCols();
public default String asString() {
final String nl = System.getProperty("line.separator");
package data;
import javax.persistence.EntityManagerFactory;
import entity.Bild;
import entity.Raum;
import static easyJPA.EasyJPA.*;
import java.util.ArrayList;
This file has been truncated, but you can view the full file.
THE TOURNAMENT BEGINS!
----------------------------------------------------------------------------------------------------------------------------------------------------------------
The match between DumbPlanes and EmoFockeWulf begins and will go on for 10 fights.
FIGHT 1
This file has been truncated, but you can view the full file.
THE TOURNAMENT BEGINS!
----------------------------------------------------------------------------------------------------------------------------------------------------------------
The match between DumbPlanes and EmoFockeWulf begins and will go on for 10 fights.
FIGHT 1
This file has been truncated, but you can view the full file.
THE TOURNAMENT BEGINS!
----------------------------------------------------------------------------------------------------------------------------------------------------------------
The match between DumbPlanes and EmoFockeWulf begins and will go on for 10 fights.
FIGHT 1
@rik-degraaff
rik-degraaff / tournament
Created July 30, 2014 00:55
Tournament
This file has been truncated, but you can view the full file.
THE TOURNAMENT BEGINS!
----------------------------------------------------------------------------------------------------------------------------------------------------------------
The match between DumbPlanes and EmoFockeWulf begins and will go on for 10 fights.
FIGHT 1