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
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:
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 |
# Run with: rake environment elasticsearch:reindex | |
# Begins by creating the index using tire:import command | |
# This will create the "official" index name, e.g. "person" each time. | |
# Then we rename it to, e.g. "person20121001" and alias "person" to it. | |
namespace :elasticsearch do | |
desc "re-index elasticsearch" | |
task :reindex => :environment do | |
klasses = [Ticket] |
host: | |
development: | |
production: https://supportbee.com/devblog | |
JB : | |
version : 0.2.13 | |
setup: | |
provider: custom |
def active? | |
not (expired? or exceeds_ticket_volume?) | |
end | |
def expired? | |
expiry < Time.now | |
end |
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' | |
}); |