This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
require 'simple_worker' | |
class EncodePhoto < SimpleWorker::Base | |
merge_gem 'zencoder' | |
attr_accessor :photo_id, :unencoded_url | |
# The run method is what SimpleWorker calls to run your worker | |
def run | |
begin |
# now override it | |
module Sass | |
module Version | |
def version | |
@@version = { | |
:major => 3, | |
:minor => 2, | |
:teeny => 0, | |
:name => nil | |
} |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
@mixin gradient($from, $to) { | |
/* fallback/image non-cover color */ | |
background-color: $from; | |
/* Firefox 3.6+ */ | |
background-image: -moz-linear-gradient($from, $to); | |
/* Safari 4+, Chrome 1+ */ | |
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from($from), to($to)); |