degree | score |
---|---|
0 | 0 |
1 | 1, 2 |
2 | 3-5 |
3 | 6-9 |
4 | 10-14 |
5 | 15-20 |
6 | 21-27 |
7 | 28-35 |
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
@javascript | |
Feature: Device Info | |
As a Tapjoy employee | |
I want to search devices | |
So that I can efficiently manage their clicks, apps and rewards | |
Scenario: Visiting the "device info" page without a search | |
When I visit the device info "show" page | |
Then I should see the "search bar" | |
And I should not see the "Apps Section" |
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
@javascript | |
Feature: Device Info | |
As a Tapjoy employee | |
I want to search devices | |
So that I can efficiently manage their clicks, apps and rewards | |
Scenario: Visiting the "device info" page without a search | |
Given I have not submitted any searches on the "device info" page | |
When I visit the "device info" page | |
Then I should see the search bar |
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
class Store | |
def foo | |
Storage.store "abc", "bbc" | |
end | |
# def bar | |
# storage = Storage.new | |
# storage.some_instance_method "cnn" | |
# end |
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
require 'rubygems' | |
require 'httparty' | |
require 'json' | |
require 'csv' | |
PAGE_IDS = ['vitrue', 'buddymedia' ] # ... and so on | |
ACCESS_TOKEN = 'AAACEdEose0cBAMRhF8cj7Gzt1SpNxPwW28dHkXPDLjqRVo2gfxB3lpDDZCdBZAyYv4xn1mTLtJn7c5s6MTBjEIYC73QR7fU1wHxjGShgZDZD' | |
def url_for_posts(page_id, token=ACCESS_TOKEN) | |
"https://graph.facebook.com/#{page_id}/posts?limit=500&access_token=#{token}" |
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
def size_upload | |
result = {:export => {use: []}} | |
return result unless self.uploads_enabled? | |
result[:resize] = result[:encode] = { | |
width: self.upload_width, | |
height: self.upload_height | |
} if self.upload_width? && self.upload_height? | |
result[:resize_thumb] = result[:encode_thumb] = { |
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
SIZING_METHODS = {:enable_images? => :resize, :enable_videos? => :encode} | |
def size_upload | |
result = {:export => {use: []}} | |
return result unless self.uploads_enabled? | |
['', '_thumb'].each do |insert| | |
w = "upload#{insert}_width".to_sym | |
w? = "#{w}?".to_sym |
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
def sort(&blk) | |
#TODO Make this not explode | |
raise Exception.new("Haw, Haw!") | |
end |
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
127.0.0.1 localhost | |
127.0.0.1 kasper.pipe.vitrue.com | |
127.0.0.1 publisher.kasper.pipe.vitrue.com | |
127.0.0.1 publishertest.kasper.pipe.vitrue.com | |
127.0.0.1 emcee.kasper.pipe.vitrue.com | |
127.0.0.1 emceetest.kasper.pipe.vitrue.com | |
127.0.0.1 evaluator.kasper.pipe.vitrue.com | |
255.255.255.255 broadcasthost | |
::1 localhost | |
fe80::1%lo0 localhost |
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
class Moderation::GraphObject | |
include Mongoid::Document | |
include Mongoid::Timestamps | |
before_save :flag_fb_comments_and_likes_counts_changes | |
after_save :update_fb_comments_and_likes_counts_on_dispatch! | |
include Moderation::Remover | |
include Moderation::Flagger | |
include Moderation::Stateful |
NewerOlder