Skip to content

Instantly share code, notes, and snippets.

@chnn
chnn / AssassinManagerTest.java
Last active December 26, 2015 09:19 — forked from kvu787/AssassinManagerTest.java
Include indents in expected printouts
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Arrays;
import org.junit.After;
import org.junit.Before;
@chnn
chnn / index.html
Last active August 29, 2015 14:27 — forked from jfsiii/.block
I wanted to add diagonal stripes to a SVG bar chart, but wanted to a) avoid using images b) change the color via CSS
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>SVG colored patterns via mask</title>
<style>
/* FF seems to need explicit dimensions */
svg {
width: 500px;
height: 500px;