Influenced by the blog post: http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
I have added some things which make sense at the state I am in.
Conventions for this fork:
- done
group :production, :test, :cucumber, :staging do | |
gem 'rb-inotify', :require => false | |
end | |
group :test, :development, :cucumber do | |
gem 'rb-fsevent', :require => false | |
end |
Add the following code block with the correct options to embed SupportBee in any website | |
<script src="https://sbassets.s3.amazonaws.com/widget/script.js" type="text/javascript"></script> | |
<script> | |
var sb_form = SupportBee.Form.initialize({ | |
company: 'techfolder', | |
height: '400px', | |
base_domain: 'supportbee.com', | |
position: 'bottom' | |
}); |
class CucumberExternalResqueWorker | |
DEFAULT_STARTUP_TIMEOUT = 1.minute | |
COUNTER_KEY = "cucumber:counter" | |
class << self | |
attr_accessor :pid, :startup_timeout | |
def start | |
# Call from a Cucumber support file so it is run on startup | |
return unless Rails.env.cucumber? |
Influenced by the blog post: http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
I have added some things which make sense at the state I am in.
Conventions for this fork:
This gist is a fork of the gist from this blog post.
check_css = lambda { |env| | |
node = env[:node] | |
node_name = env[:node_name] | |
# Don't continue if this node is already whitelisted or is not an element. | |
return if env[:is_whitelisted] || !node.element? | |
parent = node.parent | |
return unless node_name == 'style' || node['style'] | |
if node_name == 'style' | |
unless good_css? node.content | |
node.unlink |