Skip to content

Instantly share code, notes, and snippets.

@skunkiferous
skunkiferous / TestZStd.java
Last active March 8, 2019 17:06
Test for ZStd issue
package test;
import static org.junit.Assert.assertEquals;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
@skunkiferous
skunkiferous / CompositionExample.java
Created June 2, 2012 08:48
A composition example in Java showing how to implement virtual methods using dynamic composition.
/* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://sam.zoy.org/wtfpl/COPYING for more details. */
package test;
import java.util.Date;