Skip to content

Instantly share code, notes, and snippets.

require "rubygems"
require "chunky_png"
require "base64"
module Sass::Script::Functions
def background_noise(c, noise = 0.5, opacity = 0.08, size = 200, mono = false)
# Convert SASS numbers to Ruby classes
noise = noise.to_s.to_f if noise.is_a? Sass::Script::Number
@bookcasey
bookcasey / config.rb
Created February 22, 2012 00:48 — forked from pengwynn/config.rb
Nesta, compass, rack
# Compass Configuration
# HTTP paths
http_path = '/'
http_stylesheets_path = '/mysite/css'
http_images_path = '/mysite/images'
http_javascripts_path = '/mysite/javascripts'
# File system locations
sass_dir = 'themes/mysite/sass'