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
irb(main):019:0> list_clients.items.each { |el| p "elem ----- #{el}" } | |
"elem ----- #<Google::Apis::AdsenseV1_4::AdClient:0x00000000080a5750>" | |
"elem ----- #<Google::Apis::AdsenseV1_4::AdClient:0x00000000080a47d8>" | |
=> [#<Google::Apis::AdsenseV1_4::AdClient:0x00000000080a5750 @arc_opt_in=true, @id="ca-pub-7666278362879166", @kind="adsense#adClient", @product_code="AFC", @supports_reporting=true>, #<Google::Apis::AdsenseV1_4::AdClient:0x00000000080a47d8 @id="partner-pub-7666278362879166", @kind="adsense#adClient", @product_code="AFS", @supports_reporting=true>] | |
irb(main):020:0> list_clients.items.first | |
=> #<Google::Apis::AdsenseV1_4::AdClient:0x00000000080a5750 @arc_opt_in=true, @id="ca-pub-7666278362879166", @kind="adsense#adClient", @product_code="AFC", @supports_reporting=true> | |
irb(main):021:0> list_clients.items.first.arc_opt_in | |
=> true |
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
docker-machine create --generic-ssh-user root \ | |
--engine-storage-driver overlay2 \ | |
--driver generic \ | |
--generic-ip-address=132.33.127.23 samecker.xx.com | |
docker-machine env samecker.xx.com | |
eval $(docker-machine env test.peakcpm.com) | |
docker-compose -f docker-compose.yml -f docker-compose.staging.yml build --no-cache backend |
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 "addressable/uri" | |
require "yaml" | |
class Site < ActiveRecord::Base | |
include Utils | |
include BadEntity | |
FEATURED_AT_POPULARITY = 0.5 | |
has_many :articles_topics | |
has_one :site_rating |
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
whenever --update-crontab |
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 'factory_bot' | |
require 'rails_helper' | |
require 'support/devise' | |
describe ApplicationHelper, type: :request do | |
describe '#component' do | |
let(:user) { FactoryBot.create(:user) } | |
it 'allow as users website' do | |
sign_in(user) |
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:0x0000563225e4f298>:0x0000563225e60430 | |
@__inspect_output="\"return website organization name if all field in object eql true\" (./spec/helpers/breadcrumb_helper_spec.rb:8)", | |
@__memoized= | |
#<RSpec::Core::MemoizedHelpers::ThreadsafeMemoized:0x0000563220d7b5d8 | |
@memoized= | |
{:website=> | |
#<Website:0x00005632205d4bb8 | |
id: 2668, | |
name: "Mr. Mossie Prosacco", | |
url: "http://satterfield.com/mauricio", |
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
module StatsHelper | |
def stats_path | |
if params[:website_id].present? | |
website_stats_path(params[:website_id]) | |
elsif params[:id] | |
organization_stats_path(params[:id]) | |
else | |
all_stats_path | |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDGn3OlO1C4iqP8E0EMB4/dIF8AIGw+K7p6MkNL92gPHW1e3eUHRCFRZ463p5708H5ecpI62YS+IOBjLZu02JFK8IUkfxPvEBygcEugv68Mw9BPWrXtlUkAJxwWwPF8YLvg/yPK5Sj+nESqVdthQmPiHm8J1jAvSxNxAmF7cseHTSBJKOarWz2FDlfgnH3m/f7eIqdNnDDcvu6Ce87GaMw8/3/To9CYKwSDeYcoRNolQGjTKx0f3GQpD+r4nDoaWqfM7sUlfH9hgBzoSqgmv5PtXfZutUNzZdJS9OjICJFabfttRbtynrLPkpO+Ov7c7RqQVhLvID1/tKcBQQwTB4qBAH+Ioet/pNPjn2CZiymPBLVQiACC1apXfkxlkkQG44z7DbHGFJPblqov8/qYFZ2u/cUtn/auYDVk3lW+wXSYdcMeaMJdA+leI34ewrcK23ojwReieYhxloiyfG5FMmkNRjCFuQ179iVotEn7RG5NgAY1j+Ngk2U0s2xJ5CgTPYEot7PZGwIQT1Jq1r1j7llOIThLj5zT7bsgBBv//Dj+h/lnaIbgTA0T6AnN7H4RaBnP67vC6ZfiIwAQUqT+KijXCVyTWmpn+5fCTnl0aaEAU3lEFZZe+ZeJT6Km2boFCwYE9UXVl9ZZQpsQPEwssyrm4czydJ/BzDrng1QIAPV8Rw== [email protected] |
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
using System; | |
using System.Linq; | |
using OxyPlot; | |
using OxyPlot.Annotations; | |
using OxyPlot.Axes; | |
using OxyPlot.Series; | |
namespace SpectrumAnalyzer.Helpers | |
{ | |
public class Plotter |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<!-- SQL XML created by WWW SQL Designer, https://github.com/ondras/wwwsqldesigner/ --> | |
<!-- Active URL: http://ondras.zarovi.cz/sql/demo/?keyword=default --> | |
<sql> | |
<datatypes db="mysql"> | |
<group color="rgb(238,238,170)" label="Numeric"> | |
<type label="Integer" quote="" sql="INTEGER" length="0"/> | |
<type label="TINYINT" quote="" sql="TINYINT" length="0"/> | |
<type label="SMALLINT" quote="" sql="SMALLINT" length="0"/> | |
<type label="MEDIUMINT" quote="" sql="MEDIUMINT" length="0"/> |