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
| # frozen_string_literal: true | |
| module Salesforce | |
| # see more error classes | |
| # in /gems/restforce-5-1-0/lib/restforce/error_code.rb | |
| # Salesforce exceptions that should be ignored in Sentry. Not much we can do about this. These errors are temporary | |
| # and further retries will likely fix them | |
| RECOVERABLE_EXCEPTIONS = [ | |
| Restforce::ErrorCode::RequestLimitExceeded, | |
| Restforce::ErrorCode::QueryTimeout, |
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
| Have been fixed 0 wrong states from 20.0 M ids | |
| Have been fixed 0 wrong states from 20.1 M ids | |
| Have been fixed 0 wrong states from 20.2 M ids | |
| Have been fixed 0 wrong states from 20.3 M ids | |
| Have been fixed 0 wrong states from 20.4 M ids | |
| Have been fixed 0 wrong states from 20.5 M ids | |
| Have been fixed 0 wrong states from 20.6 M ids | |
| Have been fixed 0 wrong states from 20.7 M ids | |
| Have been fixed 0 wrong states from 20.8 M ids | |
| Have been fixed 0 wrong states from 20.9 M ids |
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
| Have been fixed 0 wrong states from 20.0 M ids | |
| Have been fixed 0 wrong states from 20.1 M ids | |
| Have been fixed 0 wrong states from 20.2 M ids | |
| Have been fixed 0 wrong states from 20.3 M ids | |
| Have been fixed 0 wrong states from 20.4 M ids | |
| Have been fixed 0 wrong states from 20.5 M ids | |
| Have been fixed 0 wrong states from 20.6 M ids | |
| Have been fixed 0 wrong states from 20.7 M ids | |
| Have been fixed 0 wrong states from 20.8 M ids | |
| Have been fixed 0 wrong states from 20.9 M ids |
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 Devise::Strategies | |
| # Rастомная стратегия аутентификации | |
| class Aaa < Authenticatable | |
| def authenticate! | |
| # binding.pry | |
| resource = password.present? && mapping.to.find_for_database_otp_authentication(authentication_hash) | |
| encrypted = false | |
| if validate(resource){ encrypted = true; resource.valid_password?(password) && valid_otp?(resource) } | |
| (resource) |
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 ExternalPlaylistsFacade | |
| include PlaylistHelper | |
| include Concerns::VideoFormats | |
| include Multisportable | |
| GLUE_THRESHOLD = 2 | |
| attr_reader :matches_count, :type, :matches | |
| def initialize(playlist:, current_user:, type:, current_ip:) |
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 Seafile < ActiveRecord::Base | |
| belongs_to :user | |
| has_one :message | |
| has_and_belongs_to_many :allow_users, class_name: 'User' | |
| before_save :check_constraints | |
| def share(user) | |
| allow_users << user | |
| 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
| source 'https://rubygems.org' | |
| # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
| gem 'rails', '~> 4.1.15' | |
| gem 'pg' | |
| gem 'redis', '~> 3.2' | |
| # Use only by admin path | |
| gem 'underscore-rails' | |
| gem 'geocoder', '~> 1.4.9' |
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
| var MyPlaylistsActions = require('../../actions/my-playlists-actions'); | |
| var ShareActions = require('../../actions/share-actions'); | |
| var MyPlaylistsTrPlaylist = React.createClass({ | |
| getInitialState: function() { | |
| return { | |
| title: this.props.playlist.title, | |
| subtitle: this.props.playlist.subtitle, | |
| editTitle: false, |
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
| ggg = [{"from"=>12.259, "to"=>18.259, "fname"=>"10041025_1", "title"=>"1st period, 0:07 - 0:13"}, {"from"=>34.168, "to"=>40.168, "fname"=>"10040915_1", "title"=>"1st period, 0:31 - 0:37"}, {"from"=>37.756, "to"=>43.756, "fname"=>"10040985_1", "title"=>"1st period, 0:32 - 0:38"}, {"from"=>133.917, "to"=>139.917, "fname"=>"10040902_1", "title"=>"1st period, 1:12 - 1:18"}, {"from"=>114.087, "to"=>120.087, "fname"=>"10040972_1", "title"=>"1st period, 1:20 - 1:26"}, {"from"=>89.142, "to"=>95.142, "fname"=>"10040997_1", "title"=>"1st period, 1:24 - 1:30"}, {"from"=>92.859, "to"=>98.859, "fname"=>"10040997_1", "title"=>"1st period, 1:27 - 1:33"}, {"from"=>164.701, "to"=>170.701, "fname"=>"10040997_1", "title"=>"1st period, 2:39 - 2:45"}, {"from"=>174.096, "to"=>180.096, "fname"=>"10040997_1", "title"=>"1st period, 2:48 - 2:54"}, {"from"=>256.95, "to"=>262.95, "fname"=>"10040972_1", "title"=>"1st period, 2:52 - 2:58"}, {"from"=>270.006, "to"=>276.006, "fname"=>"10040915_1", "title"=>"1st period, 3:08 - 3:14"}, {"from |
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
| ggg = [{"from"=>124.596, "to"=>136.596, "fname"=>"20290688_1", "title"=>"1st quarter, 1:57 - 1:09"}, {"from"=>189.521, "to"=>201.521, "fname"=>"20293472_1", "title"=>"1st quarter, 2:00 - 2:12"}, {"from"=>177.952, "to"=>189.952, "fname"=>"20282215_1", "title"=>"1st quarter, 2:19 - 3:31"}, {"from"=>255.897, "to"=>267.897, "fname"=>"20284118_1", "title"=>"1st quarter, 3:22 - 4:34"}, {"from"=>307.51, "to"=>319.51, "fname"=>"20278937_1", "title"=>"1st quarter, 4:34 - 4:46"}, {"from"=>503.728, "to"=>515.728, "fname"=>"20274952_1", "title"=>"1st quarter, 4:52 - 4:04"}, {"from"=>554.848, "to"=>566.848, "fname"=>"20274956_1", "title"=>"1st quarter, 4:20 - 5:32"}, {"from"=>441.855, "to"=>453.855, "fname"=>"20287641_1", "title"=>"1st quarter, 6:35 - 6:47"}, {"from"=>422.004, "to"=>434.004, "fname"=>"20282215_1", "title"=>"1st quarter, 6:05 - 6:17"}, {"from"=>612.16, "to"=>624.16, "fname"=>"20281571_1", "title"=>"1st quarter, 6:06 - 6:18"}, {"from"=>752.638, "to"=>764.638, "fname"=>"20274952_1", "title"=>"1st quarter, 6: |
NewerOlder