Skip to content

Instantly share code, notes, and snippets.

http://codepen.io/bpainter/pen/IkByq
A little nesting goes a long way.
http://codepen.io/bpainter/pen/aophg
- Only be as specific as you need to be.
- General rule of thumb - Don't nest more than 3 levels. It's a good indicator that you're being overly specific with your selectors.
- Always review your output (especially when you're first starting out). If the CSS being generated starts to look a bit off, review how you're writing your Sass.

Open Conference Expectations

This document lays out some baseline expectations between conference speakers and conference presenters. The general goal is to maximize the value the conference provides to its attendees and community and to let speakers know what they might reasonably expect from a conference.

We believe that all speakers should reasonably expect these things, not just speakers who are known to draw large crowds, because no one is a rockstar but more people should have the chance to be one. We believe that conferences are better -- and, dare we say, more diverse -- when the people speaking are not just the people who can afford to get themselves there, either because their company paid or they foot the bill themselves. Basically, this isn't a rock show rider, it's some ideas that should help get the voices of lesser known folks heard.

These expectations should serve as a starting point for discussion between speaker and organizer. They are not a list of demands; they are a list of rea

Possibly confusing dependencies found:
[lein-sass "0.3.0"] -> [com.cemerick/pomegranate "0.2.0"] -> [org.sonatype.aether/aether-connector-wagon "1.13.1"] -> [org.codehaus.plexus/plexus-utils "2.0.7"]
overrides
[lein-sass "0.3.0"] -> [com.cemerick/pomegranate "0.2.0"] -> [org.apache.maven.wagon/wagon-http "2.2"] -> [org.apache.maven.wagon/wagon-http-shared4 "2.2"] -> [org.apache.maven.wagon/wagon-provider-api "2.2"] -> [org.codehaus.plexus/plexus-utils "3.0"]
and
[lein-sass "0.3.0"] -> [com.cemerick/pomegranate "0.2.0"] -> [org.apache.maven.wagon/wagon-http "2.2"] -> [org.apache.maven.wagon/wagon-provider-api "2.2"] -> [org.codehaus.plexus/plexus-utils "3.0"]
and
[lein-sass "0.3.0"] -> [com.cemerick/pomegranate "0.2.0"] -> [org.apache.maven.wagon/wagon-provider-api "2.2"] -> [org.codehaus.plexus/plexus-utils "3.0"]
Consider using these exclusions:
clojure.lang.ExceptionInfo: Interceptor Exception: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
at clojure.core$ex_info.invoke (core.clj:4593)
io.pedestal.impl.interceptor$throwable__GT_ex_info.invoke (interceptor.clj:31)
io.pedestal.impl.interceptor$try_f.invoke (interceptor.clj:53)
io.pedestal.impl.interceptor$enter_all_with_binding.invoke (interceptor.clj:141)
io.pedestal.impl.interceptor$enter_all$fn__7188.invoke (interceptor.clj:156)
clojure.lang.AFn.applyToHelper (AFn.java:152)
clojure.lang.AFn.applyTo (AFn.java:144)
Error processing request!
Exception:
clojure.lang.ExceptionInfo: Interceptor Exception: java.lang.IllegalArgumentException: Access key cannot be null.
at clojure.core$ex_info.invoke (core.clj:4593)
io.pedestal.impl.interceptor$throwable__GT_ex_info.invoke (interceptor.clj:31)
io.pedestal.impl.interceptor$try_f.invoke (interceptor.clj:53)
io.pedestal.impl.interceptor$enter_all_with_binding.invoke (interceptor.clj:141)
io.pedestal.impl.interceptor$enter_all$fn__7983.invoke (interceptor.clj:156)
clojure.lang.AFn.applyToHelper (AFn.java:152)
[Log] Error processing request! (application.min.js, line 4769)
Exception:
clojure.lang.ExceptionInfo: Invalid handler response
at clojure.core$ex_info.invoke (core.clj:4593)
vitality.services.dashboard.controller$fn__20263$fn__20264.invoke (controller.clj:164)
clojure.core.async$thread_call$fn__6148.invoke (async.clj:405)
clojure.lang.AFn.run (AFn.java:22)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)
@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