Skip to content

Instantly share code, notes, and snippets.

<h1>Implement Inheritance Using '@extend'</h1>
<span class="message success">Success</span>
<span class="message error">Error</span>
<span class="message warning">Warning</span>
<h1>Write Less With 'mixins'</h1>
<div id="container">
<div></div>
<div></div>
<div></div>
</div>
@seanirby
seanirby / SassMeister-input-HTML.html
Created November 10, 2013 22:07
Variables and Nesting
<h1>DRY Your Code With Nesting and Variables</h1>
<article id="firstPanel" class="panel">
<h3>Panel 1</h3>
<div class="block"></div>
</article><!--
--><article id="secondPanel" class="panel">
<h3>Panel 2</h3>
<div class="block"></div>
</article><!--
@seanirby
seanirby / gist:5727048
Created June 7, 2013 04:20
Need a to this user data in its own hash in params
<%#= NEED TO Namespace potential user params %>
<%= form_tag send_invite_path, :method => "post" do %>
<%= label_tag :email, "Email" %>
<%= text_field_tag :email %>
<%= label_tag :first_name, "First Name" %>
<%= text_field_tag :first_name %>
<%= label_tag :last_name, "Last Name" %>
<%= text_field_tag :last_name %>
@seanirby
seanirby / gist:5617662
Created May 21, 2013 05:31
Technical Blog Post Outline: Has And Belongs to Many Associations in Rails
A. Intro
1.Go over associations and specifically explain the motivation for using a has and belongs to many association
B. Body
1. Create two models
2. Create the associations in each respective model file