Skip to content

Instantly share code, notes, and snippets.

View mavame's full-sized avatar

Matt Van Meter mavame

View GitHub Profile
@mavame
mavame / gist:5426716
Created April 20, 2013 17:21
My interpretation of Chapter 2 from Pro JavaScript Design Patterns http://www.amazon.com/Pro-JavaScript-Design-Patterns-Object-Oriented/dp/159059908X
// Ch2 from Pro JavaScript Design Patterns
// Interfaces in JS!!
/*
interface Composite {
function add(child);
function remove(child);
function getChild(index);
}
interface FormItem {
@mavame
mavame / dabblet.css
Created March 5, 2013 22:01
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body {
text-align:center;
}
div {
color:#eac;
@mavame
mavame / index.html
Created March 5, 2013 21:16
A CodePen by Matt . button-gradient mixin for sass
<div class="column">
<a class="btn red">Button</a>
<div class="swatch red"></div>
<a class="btn darkRed">Button</a>
<div class="swatch darkRed"></div>
<a class="btn burntRed">Button</a>
<div class="swatch burntRed"></div>
<a class="btn brightBlue">Button</a>
<div class="swatch brightBlue"></div>
<a class="btn blue">Button</a>