Skip to content

Instantly share code, notes, and snippets.

View tinney's full-sized avatar
🏠
Working from home

Dustin Tinney tinney

🏠
Working from home
View GitHub Profile
@tinney
tinney / application.rb
Created July 12, 2011 02:03
Compass load_paths with Rails 3.1
class Application < Rails::Application
config.sass.load_paths << "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/compass/stylesheets"
config.sass.load_paths << "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/blueprint/stylesheets"
end
@tinney
tinney / layout.css.scss.erb
Created July 12, 2011 02:01
Using Rails 3.1 with the SASS-Rails Plugin
body {
background-image: asset_url("bg.jpg", image);
}
h1 {
background-image: url(asset_path("h1-background.jpg", image));
}
/*
* This is a manifest file that'll automatically include all the stylesheets available in this directory
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
* the top of the compiled file, but it's generally better to create a new file per style scope.
*= require_self
*/
@import "compass/reset";
@import "compass/css3/transition";
SELECT *
FROM t1
INNER JOIN t2
ON t1.a = t2.b AND t2.c = 1
SELECT *
FROM t1
WHERE t1.a IN (SELECT t2.b FROM t2 where t2.c = 1)