Skip to content

Instantly share code, notes, and snippets.

View bubbleheadinc's full-sized avatar
🤓

SV bubbleheadinc

🤓
  • DevMethods
View GitHub Profile
@bubbleheadinc
bubbleheadinc / gist:5725438
Created June 6, 2013 22:15
Mixin loop to spit out span classes based on # of grid columns for JustifyGrid.com SCSS
@mixin grid-spans($col-span){
@while $col-span > 0{
.grid-span-#{$col-span}{
width: grid-span($col-span);
}
$col-span: $col-span - 1;
}
}

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@bubbleheadinc
bubbleheadinc / gist:8337386
Last active January 2, 2016 17:29
compass extend warning issue
.class{
@include breakpoint(wide){
@include span-columns(4);
}
}
.anotherClass{
@extend .class;
@include breakpoint(wide){
@include omega;
@bubbleheadinc
bubbleheadinc / SassMeister-input.scss
Created January 9, 2014 16:58
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// Susy (v2.0.0.beta.2)
// ----
@import "susy";
$gt-tablet-port: 50em;
@bubbleheadinc
bubbleheadinc / rem-px-fallback mixin
Created January 9, 2014 20:34
SCSS mixin for element sizing in rem's with px fallback
// Adapted from: https://gist.github.com/webgefrickel/4530526
// Added if input value is rem output and provide px fallback
/*
* a small mixin for easy use of rem with px as fallback
* usage: @include x-rem(font-size, 14px)
* usage: @include x-rem(marign, 0 12px 2 1.2)
* usage: @include x-rem(padding, 1.5 24px)
*
* thanks to Eric Meyer for https://github.com/ericam/susy
@bubbleheadinc
bubbleheadinc / index.html
Last active January 3, 2016 14:19 — forked from benschwarz/index.html
Expanded use of aria roles; included changed main <section> to <main> element; Expanded markup with different scenarios to include article, aside and structures within
<!doctype html>
<html>
<body>
<header role="banner">
<a href="/" rel="home">My company</a>
<nav role="navigation">
<a href="/about">About</a>
<a href="/contact">Contact</a>
</nav>
<form role="form">
@bubbleheadinc
bubbleheadinc / SassMeister-input-HTML.html
Created April 6, 2014 12:42
Generated by SassMeister.com.
<div class="circle">
<div class="circle__not-likely">
<div class="circle__sw-likely">
<div class="circle__v-likely">
$
</div>
</div>
</div>
</div>
<div>
var gulp = require('gulp');
var gutil = require('gulp-util');
var bower = require('bower');
var concat = require('gulp-concat');
var sass = require('gulp-sass');
var minifyCss = require('gulp-minify-css');
var rename = require('gulp-rename');
var sh = require('shelljs');
var paths = {
@bubbleheadinc
bubbleheadinc / gist:a05ad99c2e2a102e7adc
Created February 26, 2015 16:29
Angular - click child, set class on ng-repeat parent
// Angular ng-repeat and setting class on item from item's child
// Clicking child sends it's parents index to the controller
// Controller toggles the toggleState boolean and the index lets us
// only add classes to the parent of the clicked child
// in controller
$scope.toggleParentClass = function($index){
$scope.parentIndex = $index;
$scope.toggleState = !$scope.toggleState;
};
@bubbleheadinc
bubbleheadinc / SassMeister-input-HTML.html
Created April 24, 2015 20:28
Generated by SassMeister.com.
<div class="gallery">one</div>
<div class="gallery">one</div><div class="gallery">one</div><div class="gallery">one</div><div class="gallery">one</div><div class="gallery">one</div><div class="gallery">one</div>