I hereby claim:
- I am ryanong on github.
- I am ryanong (https://keybase.io/ryanong) on keybase.
- I have a public key ASBRZGdZ9UuDs3nNbrSqVePEWul8ohFEnkoxuJewOCzTkgo
To claim this, I am signing this object:
module LatestTestFailure | |
class << self | |
def around(example) | |
Rails.logger.info start_log(example.location) | |
example.run | |
Rails.logger.info end_log( | |
example.location, | |
example.exception ? "FAILED" : "PASSED" | |
) | |
end |
require "active_job/arguments" | |
module Service | |
extend ActiveSupport::Concern | |
class ServiceJob | |
include Sidekiq::Worker | |
sidekiq_options queue: :web_default |
<div id="cg-<%= name.parameterize %>"> | |
<h1 class="uk-article-title"><%= name.humanize %></h1> | |
<p class="uk-article-lead"><%= description %></p> | |
<h2 id="usage"><a href="#usage" class="uk-link-reset">Usage</a></h2> | |
<h3 class="tm-article-subtitle">Example</h3> | |
<div class="uk-border uk-padding uk-grid"> |
I hereby claim:
To claim this, I am signing this object:
# spec/support/capybara.rb | |
require "capybara" | |
require "puma/server" | |
require "support/nginx" | |
Capybara.server do |app, port| | |
server = Puma::Server.new(app) | |
server.min_threads = 1 | |
server.max_threads = 1 | |
if ENV["PRECOMPILE"] == "true" |
class ERBSource | |
ERB = ::ActionView::Template::Handlers::ERB | |
def self.for(block) | |
new(block).source | |
end | |
attr_reader :block, :file, :line_number | |
def initialize(block) | |
@block = block |
def compare_strings(str1,str2) | |
str1.downcase! | |
pairs1 = (0..str1.length-2).collect {|i| str1[i,2]}.reject { |pair| pair.include? " "} | |
str2.downcase! | |
pairs2 = (0..str2.length-2).collect {|i| str2[i,2]}.reject { |pair| pair.include? " "} | |
union = pairs1.size + pairs2.size | |
intersection = 0 |