This file contains 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
#!/bin/bash | |
# Usage: ./calculate_max_time.sh <initial_backoff> <backoff_multiplier> <max_backoff> <max_total_time> | |
# Command line arguments | |
initial_backoff=$1 | |
backoff_multiplier=$2 | |
max_backoff=$3 | |
max_total_time=$4 |
This file contains 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
<VAST version="3.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<Ad id="20001"> | |
<InLine> | |
<AdSystem version="4.0">iabtechlab</AdSystem> | |
<AdTitle>iabtechlab video ad</AdTitle> | |
<Pricing model="cpm" currency="USD"> | |
<![CDATA[ 25.00 ]]> | |
</Pricing> |
This file contains 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
<?php | |
namespace BigContacts\UserBundle\Features\Context; | |
use Behat\BehatBundle\Context\BehatContext, | |
Behat\BehatBundle\Context\MinkContext; | |
use Behat\Behat\Context\ClosuredContextInterface, | |
Behat\Behat\Context\TranslatedContextInterface, | |
Behat\Behat\Exception\PendingException; | |
use Behat\Gherkin\Node\PyStringNode, |
This file contains 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
:ruby | |
config = field.associated_model_config | |
selected = field.bindings[:object].send(field.association[:name]) | |
selected_ids = selected.map(&:id) | |
xhr = field.associated_collection_count > 100 | |
if xhr | |
collection = selected.map do |o| | |
[o.send(config.object_label_method), o.id] | |
end | |
else |