Skip to content

Instantly share code, notes, and snippets.

@kix
kix / cap.rb
Created October 5, 2012 08:04
Capistrano cheat sheet
http://www.dizzy.co.uk/cheatsheets
This work is licensed under the Creative Commons
Attribution-NonCommercial-NoDerivs 2.0 License. To
view a copy of this license, visit
http://creativecommons.org/licenses/by-nc-nd/2.0/uk
########## Shell Commands ##########
Installation:
$ gem install capistrano
module Sass::Script::Functions
def absolute_path(path = nil)
Sass::Script::String.new([Compass.configuration.http_path, path].compact.join("/"))
end
end
@Grawl
Grawl / dabblet.css
Created January 18, 2012 00:48
CSS triangle with border
/**
* CSS triangle with border
*/
html,
body {
height: 100%;
}
body {
padding: 10px 30px 0;
background: linear-gradient(45deg, pink , blue) 100% 100% no-repeat;
module Sass::Script::Functions
def user_color
color_values = options[:custom][:user].color.
scan(/^#?(..?)(..?)(..?)$/).first.
map {|num| num.ljust(2, num).to_i(16)}
Sass::Script::Color.new(color_values)
end
end