Skip to content

Instantly share code, notes, and snippets.

View BuddyLReno's full-sized avatar
🍄
Waluigi is my homie.

Buddy Reno BuddyLReno

🍄
Waluigi is my homie.
View GitHub Profile
@BuddyLReno
BuddyLReno / promocode.js
Created March 14, 2014 15:33
Lock a Button with a Code Check
//Requires jquery
function regCodeComponent() {
'use strict';
var regController = {};
var valid_codes = ['ramseynyc', 'sethsblog', 'garynyc'];
regController.init = function (button) {
regController.$button = $j(button);
@BuddyLReno
BuddyLReno / SassMeister-input-HTML.html
Created April 16, 2014 13:15
Color Switcher with Sass Maps
<div class="Brand sc">
<h4>Pop</h4>
<h3 class="popBrand">Force Pop</h3>
<h4 class="unpopBrand">UnPop</h4>
</div>
@BuddyLReno
BuddyLReno / step-example.scss
Created April 16, 2014 20:05
Sass Step Counter
ul {
clear: both;
padding: 90px 0 0 0;
counter-reset: steps-counter;
li {
clear: both;
&:before {
@extend h2;
display: inline;
content: "Step " counter(steps-counter);
@BuddyLReno
BuddyLReno / SassMeister-input-HTML.html
Created April 23, 2014 15:56
Generated by SassMeister.com.
<div class="spriteWrapper sc max_lucado">
<img src="http://a248.e.akamai.net/f/1611/26335/9h/dramsey.download.akamai.com/23572/daveramsey.com/media/fpu/stewardship/conference_2014/sc_headshot_sprite_116.png" alt=""/>
</div>
<div class="spriteWrapper sc dave_ramsey">
<img src="http://a248.e.akamai.net/f/1611/26335/9h/dramsey.download.akamai.com/23572/daveramsey.com/media/fpu/stewardship/conference_2014/sc_headshot_sprite_116.png" alt=""/>
</div>
<div class="spriteWrapper sc tom_stanley">
<img src="http://a248.e.akamai.net/f/1611/26335/9h/dramsey.download.akamai.com/23572/daveramsey.com/media/fpu/stewardship/conference_2014/sc_headshot_sprite_116.png" alt=""/>
</div>
<p>test</p>
@BuddyLReno
BuddyLReno / example_include.rb
Created May 7, 2014 21:06
Ruby: Include instance and class methods in a module.
# using include to include both class methods and instance methods
# http://www.railstips.org/blog/archives/2009/05/15/include-vs-extend-in-ruby/
module Foo
def self.included(base)
base.extend(ClassMethods)
end
module ClassMethods
def bar
@BuddyLReno
BuddyLReno / Link-Checker.css
Created July 14, 2014 13:24
Remember to add links to temporary links.
@BuddyLReno
BuddyLReno / SassMeister-input-HTML.html
Last active August 29, 2015 14:05
Theming with Sass
<article class="EventPass theme--ljl">
<a href="#">test</a>
<p>test</p>
</article>
@BuddyLReno
BuddyLReno / theme-mixin.scss
Created October 17, 2014 14:44
Theme Mixin
@mixin color-theme(
$seating_class: $default-primary,
$fineprint: $default-background,
$fineprint_copy: $default-primary--inverse,
$icons: $default-primary
) {
%theme-seating_class {
color: $seating_class;
}
@BuddyLReno
BuddyLReno / SassMeister-input.scss
Created March 4, 2015 13:54
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
//Generator
@mixin theme-generator(
$post__title: "",
$post__subtitle: ""
) {
@BuddyLReno
BuddyLReno / ex1.css
Created April 22, 2015 19:11
Sass Theme Engine Blog
.post__title,
.post__subtitle {
color: black;
}
.theme--forest .post__title {
color: forestgreen;
}
.theme--forest .post__subtitle {