This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When \/^(?:|I )follow "([^"]*)"(?: within "([^"]*)")?$\/ do |link, selector| | |
with_scope(selector) do | |
click_link(link) | |
end | |
end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ImageUploader < CarrierWave::Uploader::Base | |
include CarrierWave::MiniMagick | |
process :convert => 'png' | |
process :resize_to_fit => [600, 600] | |
version :thumb do | |
process :convert => 'png' | |
process :resize_to_fill => [100, 100] | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'new_relic/agent/method_tracer.rb' | |
EventMachine::HttpRequest.instance_eval do | |
include NewRelic::Agent::MethodTracer | |
add_method_tracer :delete, 'External/EventMachine::HttpRequest/delete' | |
add_method_tracer :get, 'External/EventMachine::HttpRequest/get' | |
add_method_tracer :head, 'External/EventMachine::HttpRequest/head' | |
add_method_tracer :post, 'External/EventMachine::HttpRequest/post' | |
add_method_tracer :put, 'External/EventMachine::HttpRequest/put' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if defined? EventMachine::HttpRequest | |
EventMachine::HttpRequest.instance_eval do | |
def request_with_newrelic_trace(*args, &block) | |
metrics = ["External/#{@req.uri}/EventMachine::HttpRequest/#{args[0].method}","External/#{@address}/all"] | |
if NewRelic::Agent::Instrumentation::MetricFrame.recording_web_transaction? | |
metrics << "External/allWeb" | |
else | |
metrics << "External/allOther" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if defined? EventMachine::HttpRequest | |
EventMachine::HttpRequest.class_eval do | |
def setup_request_with_newrelic_trace(*args, &block) | |
metrics = ["External/#{@uri.host}/EventMachine::HttpRequest/#{args[0]}","External/#{@uri.host}/all"] | |
if NewRelic::Agent::Instrumentation::MetricFrame.recording_web_transaction? | |
metrics << "External/allWeb" | |
else | |
metrics << "External/allOther" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Could not find a response recorded for <GET: /agent/e64a95b0-d661-012d-bbb0-34159e034188/classifieds?page=2&x=y [{"Accept"=>"application/json"}] ()> | |
Responses recorded are: ["<GET: /agent/e64a95b0-d661-012d-bbb0-34159e034188 [{\"Accept\"=>\"application/json\"}] ()>", "<GET: /agent/e64a95b0-d661-012d-bbb0-34159e034188/classifieds?x=y [{\"Accept\"=>\"application/json\"}] ()>", "<GET: /agent/e64a95b0-d661-012d-bbb0-34159e034188/classifieds?x=y&page=1 [{\"Accept\"=>\"application/json\"}] ()>", "<GET: /agent/e64a95b0-d661-012d-bbb0-34159e034188/classifieds?x=y&page=2 [{\"Accept\"=>\"application/json\"}] ()>"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'my-private-gem', :git => 'https://username:[email protected]/username/my-private-gem.git' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this is what I want: | |
background: sprite-image('gradients/footer.png', 0, 0, 50px, 50px) transparent repeat-x; | |
this is what I tried: | |
$gradients-repeat: repeat-x; | |
$gradients-spacing: 50px; | |
@import 'gradients/*.png'; | |
@include gradients-sprite(footer); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.bundle/gems/ruby/1.9.1/gems/carrierwave-0.5.5/lib/carrierwave/sanitized_file.rb:157:in `initialize' | |
.bundle/gems/ruby/1.9.1/gems/carrierwave-0.5.5/lib/carrierwave/sanitized_file.rb:157:in `open' | |
.bundle/gems/ruby/1.9.1/gems/carrierwave-0.5.5/lib/carrierwave/sanitized_file.rb:157:in `read' | |
.bundle/gems/ruby/1.9.1/gems/carrierwave-0.5.5/lib/carrierwave/storage/s3.rb:140:in `store' | |
.bundle/gems/ruby/1.9.1/gems/carrierwave-0.5.5/lib/carrierwave/storage/s3.rb:210:in `store!' | |
.bundle/gems/ruby/1.9.1/gems/carrierwave-0.5.5/lib/carrierwave/uploader/store.rb:59:in `block in store!' | |
.bundle/gems/ruby/1.9.1/gems/carrierwave-0.5.5/lib/carrierwave/uploader/callbacks.rb:17:in `with_callbacks' | |
.bundle/gems/ruby/1.9.1/gems/carrierwave-0.5.5/lib/carrierwave/uploader/store.rb:58:in `store!' | |
.bundle/gems/ruby/1.9.1/gems/carrierwave-0.5.5/lib/carrierwave/uploader/versions.rb:210:in `block in store_versions!' | |
.bundle/gems/ruby/1.9.1/gems/carrierwave-0.5.5/lib/carrierwave/uploader/versions.rb:210:in `each' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createFeeds() { | |
var limit = 10000; | |
var users = db.users.find().limit(limit); | |
var skip = 0; | |
while(users.length() > 0) { | |
for (i = 0; i < users.length(); i++) { | |
doc = {home_activities_count: 0, home_activity_ids: [], profile_activities_count: 0, profile_activity_ids: [], user_id: users[i]['_id']}; | |
db.feeds.insert(doc); | |
} |
OlderNewer