z, ? | toggle help (this) |
space, → | next slide |
shift-space, ← | previous slide |
d | toggle debug mode |
## <ret> | go to slide # |
c, t | table of contents (vi) |
f | toggle footer |
r | reload slides |
n | toggle notes |
p | run preshow |
i = 1
class Book < ActiveRecord::Base
end
class Book
include ActiveModel::Validations
end
$ wget http://download.cssgrid.net/1140_CssGrid_2.zip
$ unzip 1140_CssGrid_2.zip
$ cp -r 1140_CssGrid_2/css/* dingens/public/stylesheets/
$ cp -r 1140_CssGrid_2/js/* dingens/public/javascripts/
$ rails g controller foos index
.foo {
.bar {
.baz {
font-style: blink;
}
}
}
$width: 5em;
#main {
width: $width;
}
$width: 5em;
$margin: 2em;
#foo {
width: $width + $margin;
}
@mixin rand {
border: 1px solid black;
}
.foo {
@include rand;
}
@mixin rand($width: 1px) {
border: $width solid black;
}
.foo {
@include rand(2px);
}
require 'compass'
Compass::Frameworks.register(
"eleven40",
:path => "#{File.dirname(__FILE__)}/.."
)
gem 'compass'
gem 'eleven40-compass'
.container {
@include eleven40-container;
}
// [...]
.sidebar {
@include eleven40-fourcol;
}
$ rake assets:precompile
public/assets/application.css
vendor/assets/*