- Codebeat - $20 per user.
- Codacy - Free for teams up to 4 users. $15 for teams with more than 4 users.
- Code Climate - Free for teams up to 4 users. $20 for teams with more than 4 users.
- CodeFactor - $19 for 5 private repositories and unlimited number of users.
- Hound - $49 for 4 private repositories and unlimited number of users.
- Sider - $12 per user.
initializer :append_migrations do |app| | |
unless app.root.to_s.match(root.to_s) | |
config.paths["db/migrate"].expanded.each do |expanded_path| | |
app.config.paths["db/migrate"] << expanded_path | |
end | |
end | |
end |
I nap for 20 minutes every day at work (at my previous company, for 4 years or so and now since I'm working remotely). Here are my steps for taking a nap:
-
Find a good place to nap. Use the same place every day. I used to nap under my desk on a lazy bag at my last job.
-
Quickly find a comfortable position. Quickly fix everything that bothers you (like watch on your wrist or anything else that's making you uncomfortable).
-
Start breathing from your stomach - not your upper torso. Your stomach should raise up and down, not your upper torso.
-
Relax your whole body. In the beginning, start by relaxing one by one region. First your toes. Then your lower leg, then your upper leg. Then the other leg... Until you relax your whole body. It should feel as your mind is separate from your body. Like it could go out of it. Your body should be completely numb. Later, as you progress, you will be able to relax your whole body with a few breaths. As if some force flows from your stomach and removes spasm from you
puts page.driver.browser.manage.logs.get(:browser).map { |m| "#{m.level}: #{m.message}" }.join("\n") |
module Routing | |
extend ActiveSupport::Concern | |
include Rails.application.routes.url_helpers | |
include Aligni::HostHelper | |
included do | |
def default_url_options | |
ActionMailer::Base.default_url_options | |
end |
// A utility for keeping a Bootstrap drop down menu open after a link is | |
// clicked | |
// | |
// Usage: | |
// | |
// <div class="dropdown"> | |
// <a href="" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> | |
// Dropdown trigger <span class="caret"></span> | |
// </a> | |
// |
#!/bin/bash | |
bundle exec sass-convert public/_mockups/default.css app/assets/stylesheets/default.scss | |
sed -i 's/url(..\/img\/\(.*\))/image-url("\1")/g' app/assets/stylesheets/default.scss | |
sed -i 's/url("..\/img\/\(.*\)")/image-url("\1")/g' app/assets/stylesheets/default.scss | |
sed -i "s/url('..\/img\/\(.*\)')/image-url(\"\1\")/g" app/assets/stylesheets/default.scss | |
sed -i "s/url('..\/fonts\/\([a-zA-Z0-9./?#_-]*\)')/font-url('\1')/ig" app/assets/stylesheets/default.scss |