Skip to content

Instantly share code, notes, and snippets.

View Unkas82's full-sized avatar

Timko Unkas82

  • Ukraine
View GitHub Profile
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,
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'
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
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:)
@Unkas82
Unkas82 / aaa.rb
Last active November 21, 2018 12:41
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)
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
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
# 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,