Skip to content

Instantly share code, notes, and snippets.

@jonananas
jonananas / gist:5072918
Created March 2, 2013 19:45
Some code I created with three kids 6-10 yrs old in about an hour.
<html>
<meta charset="utf-8">
<head>
<title>Olles sida</title>
</head>
<body>
<script>
colorId = 0;
function sayHello(text) {
var allahej = document.getElementById("allahej");
@jonananas
jonananas / gist:5064394
Created March 1, 2013 12:43
Example of JUnit @rule for testing JAX-RS WebApplicationExceptions
package programmador.jaxrs;
import static org.fest.assertions.Assertions.assertThat;
import javax.ws.rs.WebApplicationException;
import org.junit.Assert;
import org.junit.rules.MethodRule;
import org.junit.runners.model.FrameworkMethod;
import org.junit.runners.model.Statement;