Skip to content

Instantly share code, notes, and snippets.

View rpearce's full-sized avatar
👶
infant and toddler duty

Robert Pearce rpearce

👶
infant and toddler duty
View GitHub Profile
@rpearce
rpearce / Harness Lightning
Created October 21, 2011 03:02
Cucumber Lightning Feature
Feature: Harness lightning
In order to make electricity work
As a scientist
I want to harness the power of lightning... or something like that
Background:
Given I am an inquisitive scientist
And I do not suffer from any mental illness(es)
Scenario: Using a kite
@rpearce
rpearce / gist:1305461
Created October 22, 2011 02:27
HTML example
<div id='content'>
<div class='title'>
<h1>Airplane!</h1>
<a href='/'>Home</a>
</div>
</div>
@rpearce
rpearce / gist:1305473
Created October 22, 2011 02:33
HAML example
#content
.title
%h1 Airplane!
= link_to 'Home', home_url
@rpearce
rpearce / gist:1305502
Created October 22, 2011 02:54
CSS Example
#menu li a {
display: block;
float: left;
padding: 4px 8px;
text-decoration: none;
background: #2277aa;
color: white;
}
@rpearce
rpearce / gist:2506102
Created April 27, 2012 05:19
SASS example
.converge-se
color: $sexy
p
padding: 20px
text-align: left
.crazy-paragraph
font-size: 80px
span
color: $slightly-less-sexy
@rpearce
rpearce / gist:2506135
Created April 27, 2012 05:24
SCSS example
.converge-se {
color: $sexy;
p {
padding: 20px;
text-align: left;
.crazy-paragraph {
font-size: 80px; }
}
span {
color: $slightly-less-sexy; }
@rpearce
rpearce / gist:2506157
Created April 27, 2012 05:28
CSS example
.converge-se {
color: red; }
.converge-se p {
padding: 20px;
text-align: left; }
.converge-se p .crazy-paragraph {
font-size: 80px; }
.converge-se span {
color: #ff6666; }
@rpearce
rpearce / gist:2506320
Created April 27, 2012 06:02
SASS variable example
$myvariable: #123456;
$another-variable: location;
$yet_another: whoahcrazy1;
@rpearce
rpearce / gist:2506358
Created April 27, 2012 06:08
SASS variable example2
.rando-class { color: $myvariable; }
(compiled)
.rando-class {
color: #123456; }
@rpearce
rpearce / gist:2506359
Created April 27, 2012 06:08
SASS variable example2
.rando-class { color: $myvariable; }
(compiled)
.rando-class {
color: #123456; }