:dng :js :html :nosql :php :pl :psd :py :rb :sh :sql
Pivotal Labs New York, NY November 2011 - Current
Pivot
CarZen LLC New York, NY September 2009 - October 2011
Senior Developer
- Mentored and managed two junior developers
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 |
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 |
# 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" |
I hereby claim:
To claim this, I am signing this object:
<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"> |
require "active_job/arguments" | |
module Service | |
extend ActiveSupport::Concern | |
class ServiceJob | |
include Sidekiq::Worker | |
sidekiq_options queue: :web_default |
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 |