Skip to content

Instantly share code, notes, and snippets.

View maxinspace's full-sized avatar
:shipit:
shippin' it

Maxim Larionov maxinspace

:shipit:
shippin' it
View GitHub Profile
class CipherKey
ALPHABET = %w(а б в г д е ё ж з и й к л м н о п р с т у ф х ц ч ш щ ъ ы ь э ю я)
def initialize()
end
def create_table
table = ALPHABET << " "
new_table = table.shuffle
@maxinspace
maxinspace / finding_action.rb
Last active August 29, 2015 14:17
Vast Tests Crashing Course 3
class FindingAction
belongs_to :creator
def notify_creator(updater)
FindingActionNotifier.send_creator_notification(self) if should_notify_creator?(updater)
end
private
def should_notify_creator?(updater)
@maxinspace
maxinspace / objective.rb
Last active August 29, 2015 14:17
Vast Tests Crashing Course 2
class Objective
#request
def locked?
locked_by.present? &&
[LOCK_STATUSES[:uploading], LOCK_STATUSES[:locked]].include?(lock_status)
end
#command
def release_lock
assign_attributes(