Skip to content

Instantly share code, notes, and snippets.

View oliw's full-sized avatar

Oliver Wilkie oliw

View GitHub Profile
@oliw
oliw / abba_answer.java
Created July 7, 2016 15:44
TopCoder Practice - ABBA
public class Main {
public String canObtain(String initial, String target) {
// Target is always longer than initial
if (canObtainHelper(initial, target)) {
return "Possible";
} else {
return "Impossible";
}
}
@oliw
oliw / 0_reuse_code.js
Last active August 29, 2015 14:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@oliw
oliw / MessageTest.java
Created March 27, 2014 14:08
FHIR Java Bug - Serialising and Deserialising
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import org.hl7.fhir.instance.formats.Composer;
import org.hl7.fhir.instance.formats.JsonComposer;
import org.hl7.fhir.instance.formats.JsonParser;
import org.hl7.fhir.instance.formats.ParserBase.ResourceOrFeed;
import org.hl7.fhir.instance.model.AtomFeed;
import org.junit.Test;