Skip to content

Instantly share code, notes, and snippets.

@jamieowen
jamieowen / youtube.rb
Created March 17, 2012 18:14
Octopress Youtube plugin...
module Jekyll
class Youtube < Liquid::Tag
@width = 640
@height = 390
def initialize(name, id, tokens)
super
@id = id
end
@jamieowen
jamieowen / vimeo.rb
Created March 17, 2012 19:39
Octopress Vimeo plugin...
module Jekyll
class Vimeo < Liquid::Tag
@width = 400
@height = 225
def initialize(name, id, tokens)
super
@id = id
end
@jamieowen
jamieowen / ArrayExactMatcher.as
Last active December 16, 2015 18:49
A Hamcrest matcher to match an array of values exactly.
package matchers {
import org.hamcrest.Description;
import org.hamcrest.BaseMatcher;
/**
* A Hamcrest Matcher to match an array's values exactly.
*
* @author jamieowen
*/
public class ArrayExactMatcher extends BaseMatcher
@jamieowen
jamieowen / arrayExact.as
Created April 29, 2013 10:23
Shorthand hamcrest function for the hamcrest ArrayExactMatcher gist.
package matchers {
import org.hamcrest.Matcher;
/**
* Shorthand hamcrest function style of the ArrayExactMatcher.
*
* @author jamieowen
*/
public function arrayExact(items:Array) : Matcher
{