Skip to content

Instantly share code, notes, and snippets.

View Undistraction's full-sized avatar

Pedr Browne Undistraction

View GitHub Profile
class ResourceController < ApplicationController
include ResourcesHelper
respond_to :html
before_filter :find_resource, only: [:show, :edit, :update, :destroy]
before_filter :add_crumb_auto, only: [:new, :show, :edit, :index]
def initialize
<div class="navbar navbar-inverse navbar-static-top" role="navigation">
<div class="container">
<div class="navbar-header">
<%= link_to "Pathways Admin", root_path, class:"navbar-brand"%>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
$medium-up: 'screen and (min-width: 400px)';
$large-up: 'screen and (min-width: 800px)';
$breakpoints:(
medium-up: $medium-up
);
@mixin responsive-margin($options:()) {
@include responsive-property(margin, $options)
}
@Undistraction
Undistraction / SassMeister-input-HTML.html
Created July 25, 2014 16:52
Generated by SassMeister.com.
<ul>
<li></li>
<li></li>
<li></li>
<li class="last"></li>
</ul>
@Undistraction
Undistraction / SassMeister-input-HTML.html
Created July 26, 2014 08:09
Generated by SassMeister.com.
<main class="alpha">
<div class="one"><span>1</span></div>
<div class="two"><span>2</span></div>
<div class="three"><span>3</span></div>
<div class="four"><span>4</span></div>
</main>
<main class="beta">
<div class="one"><span>1</span></div>
<div class="two"><span>2</span></div>
<div class="three"><span>3</span></div>
@Undistraction
Undistraction / SassMeister-input-HTML.html
Created July 26, 2014 08:51
Generated by SassMeister.com.
<main class="alpha">
<div class="one"><span>1</span></div>
<div class="two"><span>2</span></div>
<div class="three"><span>3</span></div>
<div class="four"><span>4</span></div>
</main>
<main class="beta">
<div class="one"><span>1</span></div>
<div class="two"><span>2</span></div>
<div class="three"><span>3</span></div>
@Undistraction
Undistraction / SassMeister-input-HTML.html
Created July 28, 2014 12:57
Generated by SassMeister.com.
<ul>
<li><p>Vivamus elementum consectetur interdum. Ut.</p></li>
<li><p>Vivamus elementum consectetur interdum. Ut.</p></li>
<li><p>Vivamus elementum consectetur interdum. Ut.</p></li>
<li class="last"><p>Vivamus elementum consectetur interdum. Ut.</p></li>
</ul>
@Undistraction
Undistraction / SassMeister-input-HTML.html
Created July 31, 2014 14:05
Generated by SassMeister.com.
<h1>This Is An H1</h1>
<h2>This Is An H2</h2>
<h3>This Is An H3</h3>
<h4>This Is An H4</h4>
<p>Nunc et suscipit lectus. Quisque mattis nisi et dui tristique, nec fringilla turpis luctus. Fusce faucibus mauris ut suscipit aliquet. Sed auctor facilisis odio, at eleifend libero aliquet quis. Integer tempor enim at odio fermentum tincidunt ultrices vel nisi. Vestibulum fermentum purus non hendrerit malesuada. Nunc laoreet justo eget dolor cursus, sed malesuada velit mattis. Aliquam non justo tristique, aliquam mauris at, lacinia mauris. Aliquam feugiat erat sed risus ultricies interdum. Quisque eget tellus egestas, luctus dolor id, tincidunt purus. Mauris tincidunt ligula nec volutpat varius. Etiam semper, erat a eleifend pulvinar, diam augue rhoncus lectus, in commodo nunc ligula ut diam. Aliquam tincidunt massa vel neque laoreet aliquam at sit amet lacus.</p>
<p> Donec scelerisque molestie nisi vitae convallis. Mauris a mauris ac tortor sagittis tempor et semper erat. Nunc placerat tortor quis enim vehicula, si
@Undistraction
Undistraction / SassMeister-input-HTML.html
Created July 31, 2014 14:38
Generated by SassMeister.com.
<h1>This Is An H1</h1>
<h2>This Is An H2</h2>
<h3>This Is An H3</h3>
<h4>This Is An H4</h4>
<p>Nunc et suscipit lectus. Quisque mattis nisi et dui tristique, nec fringilla turpis luctus. Fusce faucibus mauris ut suscipit aliquet. Sed auctor facilisis odio, at eleifend libero aliquet quis. Integer tempor enim at odio fermentum tincidunt ultrices vel nisi. Vestibulum fermentum purus non hendrerit malesuada. Nunc laoreet justo eget dolor cursus, sed malesuada velit mattis. Aliquam non justo tristique, aliquam mauris at, lacinia mauris. Aliquam feugiat erat sed risus ultricies interdum. Quisque eget tellus egestas, luctus dolor id, tincidunt purus. Mauris tincidunt ligula nec volutpat varius. Etiam semper, erat a eleifend pulvinar, diam augue rhoncus lectus, in commodo nunc ligula ut diam. Aliquam tincidunt massa vel neque laoreet aliquam at sit amet lacus.</p>
<p> Donec scelerisque molestie nisi vitae convallis. Mauris a mauris ac tortor sagittis tempor et semper erat. Nunc placerat tortor quis enim vehicula, si
@Undistraction
Undistraction / SassMeister-input-HTML.html
Created August 1, 2014 09:53
Generated by SassMeister.com.
<h1>This Is An H1</h1>
<h2>This Is An H2</h2>
<h3>This Is An H3</h3>
<h4>This Is An H4</h4>
<p>Nunc et suscipit lectus. Quisque mattis nisi et dui tristique, nec fringilla turpis luctus. Fusce faucibus mauris ut suscipit aliquet. Sed auctor facilisis odio, at eleifend libero aliquet quis. Integer tempor enim at odio fermentum tincidunt ultrices vel nisi. Vestibulum fermentum purus non hendrerit malesuada. Nunc laoreet justo eget dolor cursus, sed malesuada velit mattis. Aliquam non justo tristique, aliquam mauris at, lacinia mauris. Aliquam feugiat erat sed risus ultricies interdum. Quisque eget tellus egestas, luctus dolor id, tincidunt purus. Mauris tincidunt ligula nec volutpat varius. Etiam semper, erat a eleifend pulvinar, diam augue rhoncus lectus, in commodo nunc ligula ut diam. Aliquam tincidunt massa vel neque laoreet aliquam at sit amet lacus.</p>
<p> Donec scelerisque molestie nisi vitae convallis. Mauris a mauris ac tortor sagittis tempor et semper erat. Nunc placerat tortor quis enim vehicula, si