Skip to content

Instantly share code, notes, and snippets.

# Version 1
namespace :deploy do
desc "Build and deploy website to staging"
task :staging => [:build, :heroku_staging] do
end
desc "Build and deploy website to staging"
task :production => [:build, :heroku_production] do
end
end
THE FALLACY OF SUCCESS
There has appeared in our time a particular class of books and articles which I sincerely and solemnly think may be called the silliest ever known among men. They are much more wild than the wildest romances of chivalry and much more dull than the dullest religious tract. Moreover, the romances of chivalry were at least about chivalry; the religious tracts are about religion. But these things are about nothing; they are about what is called Success. On every bookstall, in every magazine, you may find works telling people how to succeed. They are books showing men how to succeed in everything; they are written by men who cannot even succeed in writing books. To begin with, of course, there is no such thing as Success. Or, if you like to put it so, there is nothing that is not successful. That a thing is successful merely means that it is; a millionaire is successful in being a millionaire and a donkey in being a donkey. Any live man has succeeded in living; any dead man may have succee
@function calc-em($target-px, $context) {
@return ($target-px / $context) * 1em;
}
@procload
procload / hyatt.html
Created September 23, 2013 19:23
Hyatt responsive Book It/Review It stuff...
<style type="text/css">
.quick-book-nav {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 60px;
border-top: 1px solid rgba(0,0,0,.6);
width: 100%;
z-index: 99999;
<%= data.products.oils.categories.oil_filters.first[:category] %>
details:
- name: "Brady Duncan"
url: "brady-duncan"
title: "Secretary of Beer Defense"
bio: "Has a well rounded set of skills (the right brain) who also aggressively networks and enjoys promoting the brand."
favorite: "Happy Amber"
- name: "Jeff Hunt"
url: "jeff-hunt"
title: "Beer 'Can'nesseur"
bio: "Has a very deep understanding of the brewing process and the science behind the 'magic'"
.product-listing {
@extend %group;
.product {
@include respond-to(36.25em) {
//580px
@include span-columns(8);
@include nth-omega(2n);
}
@include respond-to(47.5em) {
.product-listing {
@extend %group;
.product {
@include respond-to(36.25em) {
//580px
@include span-columns(8);
@include nth-omega(2n);
}
@include respond-to(47.5em) {
@procload
procload / vcard.htm.erb
Created July 18, 2013 15:41
An example vcard. Find the rest of the attributes here: http://microformats.org/wiki/h-card#Example
<div class="h-card">
<div class="photo">
<%= image_tag 'http://placehold.it/150x190', class: 'u-photo' %>
<%= link_to '<i class="icon-search"></i> Hi-res', '#', class: 'hi-res' %>
</div> <!-- /photo -->
<div class="details">
<a class="p-name" href="http://example.org">Marc E. Rothenberg, MD, PHD </a>
<p class="p-job-title">Director, Division of Allergy and Immunology</p>
<p class="p-job-title">Director, Cincinnati Center for Eosinophilic Disorders</p>
<p class="p-job-title">Program Director, CHRCDA (K12)</p>
@mixin respond-to($viewport-width, $ie-version: 'lt-ie9') {
@media only screen and (min-width: $viewport-width) {
@content;
}
@if $ie-version == 'lt-ie9' {
html.lt-ie9 & { // Using Paul Irish's conditional comments
@content;
}
}
@else if $ie-version == 'lt-ie8' {