Skip to content

Instantly share code, notes, and snippets.

@bpainter
bpainter / arrows.scss
Created July 15, 2011 19:08
Sass mixin for arrows based on The Shapes of CSS from Chris Coyier http://css-tricks.com/examples/ShapesOfCSS/
// --------------------------------------------------------
// arrows
// --------------------------------------------------------
// $direction: top, left, right, bottom, top-left, top-right, bottom-left, bottom-right
// $color: hex, rgb or rbga
// $size: px or em
// @example
// .element{
// @include arrow(top, #000, 50px);
// }
@bpainter
bpainter / accessible-forms.haml
Created October 7, 2011 18:19
Experimenting with accessible forms, markup that's extensible for varied types of form layout, and with enough hooks to make validation simpler.
// options for :class to handle different form layouts
// horizontal-labels - default
// vertical-lables
// overlay-labels
%form{:id => "", :name => "", :class => "", :action => "", :method => "post", "accept-charset" => "utf-8", "aria-role" => "form", "aria-live" => "polite", "aria-atomic" => "false"}
%fieldset{:id => "", :class => ""}
%legend
%h3 Basic Input Fields
@bpainter
bpainter / .bash_profile
Created October 26, 2011 15:48
Bash file for handy GIT integration, dependent on git-completion.bash
# Add commit messages with Sublime
export EDITOR='subl -w'
# GIT super shortcuts
alias ga='git add'
alias gp='git pull'
alias gps='git push'
alias gc='git commit -a'
alias gcm='git commit -m'
@bpainter
bpainter / hamstache.haml
Created November 3, 2011 20:41
Haml + Mustache
.content{{css.id}}
or
%img{:src => "{{img.src}}", :alt => "{{img.alt}}"}
@bpainter
bpainter / directives.scss
Created November 11, 2011 13:57
Sass workflow & examples
@import "compass";
// Math Operators
// =, -, *, /, %
// 5em + 5em; // 2em
// 5em - 2em; // 3em
// 1in + 72pt; // 2in
// 6px * 100; // 600px
// 18 & 5; // 3
@bpainter
bpainter / gist:1358643
Created November 11, 2011 17:36
Design Agencies/Studios & Tech Shops in Charlotte
* Studio Banks
* Skookum
* Wray Ward
* Boone Oakley
* WebsiteBiz
* Myjive
@bpainter
bpainter / checkboxes-alt.haml
Created December 7, 2011 15:42
Basic HTML for radio & checkbox markup
%fieldset
%legend
%label{:for => "checkbox-group"} Group of Checkboxes
.fields.inline
.field.checkbox
%input{:type => "checkbox", :id => "checkbox-1", :name => "checkbox-group", :value => "", "aria-checked" => "false"}
%label{:for => "checkbox-1"} First Checkbox
.field.checkbox
%input{:type => "checkbox", :id => "checkbox-2", :name => "checkbox-group", :value => "", "aria-checked" => "true", "aria-labeledby" => "l-checkbox-2"}
%label{:for => "checkbox-2"} Second Checkbox
@bpainter
bpainter / html5.md
Created January 11, 2012 22:16
html5.md

HTML5

Introduction

We'll divide this meetup up into a two parter:

  1. Focus of today will be an intro to HTML5. We'll focus on the semantics.
  2. HTML5 Apps (webstorage, application cache, web workers, websocket, hardware access (drag & drop), geolocation, device orientation, speech input)

1991 - HTML

@bpainter
bpainter / css-magic.notes.md
Created March 10, 2012 12:25
CSS Magic Notes

CSS3 Outline

Intro

The W3C has changed their approach a bit with CSS3. They've made things modular and each module is designed to be implemented separately and independently from each other.

This is good for us because it (hopefully) helps the spec move forward faster and allows browser makers to implement module by module.

It lets us play with lots of the new CSS3 properties that aren't 100% complete.

@bpainter
bpainter / teams
Created October 10, 2012 20:56
Charlotte Front-End Teams
Add a comment with with front-end, back-end or design so I can get you placed in the correct team.