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
@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(
@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)
class CipherKey
ALPHABET = %w(а б в г д е ё ж з и й к л м н о п р с т у ф х ц ч ш щ ъ ы ь э ю я)
def initialize()
end
def create_table
table = ALPHABET << " "
new_table = table.shuffle
@maxinspace
maxinspace / readme.txt
Created October 20, 2015 11:03
Google Authenticator from Terminal
This instruction will allow you to get keys from Google Authenticator via terminal.
1) Download oathtool
brew install oathtool
http://www.nongnu.org/oath-toolkit/oathtool.1.html
2) Get your 2-Factor authentication secret key.
For example, instead of capturing barcode, ask Google 2-factor auth to enter code manually.
And google 2-factor auth will provide you your secret key.
@maxinspace
maxinspace / INSTALLATION.md
Created October 26, 2015 15:08 — forked from DenisIzmaylov/INSTALLATION.md
OS X 10.11 El Capitan: fresh install with Node.js (io.js) Developer Environment

OS X 10.11 (El Capitan) / Node.js and io.js Developer Environment

Custom recipe to get OS X 10.11 El Capitan running from scratch with useful applications and Node.js Developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after fresh install.

Content

# плохой пример
RSpec.describe Alarm do
describe "#snooze" do
subject { described_class.new(at: time) }
it { expect { subject.snooze }.to change { subject.at }.by(9.minutes)
end
end
# вариант 1
@maxinspace
maxinspace / tutorial.md
Last active September 12, 2016 21:54
Windows 10 external installation guide

Tutorial on How to put Windows 10 on external HDD for Mac OS

Source - http://goo.gl/9Paijf


Tools Needed

  • Unfortunately you need a Windows 10/8 (prefer) or virtual machine running windows
  • Mac (obviously)
  • USB 3 HDD/Flash Drive (SSD Drive recommended)
@maxinspace
maxinspace / rails_dev_deploy_setup.md
Created September 26, 2016 20:02 — forked from scootcho/rails_dev_deploy_setup.md
Rails ansible/docker deploy setup

Information of rails development and deployment setup

A list of rails development and deployment setup

Notes

  • Learn the IFTTT dash development env
  • Setup the services like db, nginx and others using docker with vagrant or docker-machine then develop rails/nodejs localy to gain development effeciency to avoid docker build every time

List of resourses

@maxinspace
maxinspace / include_resource_params.rb
Last active October 26, 2016 14:10
Test Task for TrustYou
##
# The IncludedResourceParams class is responsible for parsing a string containing
# a comma separated list of associated resources to include with a request. See
# http://jsonapi.org/format/#fetching-includes for additional details although
# this is not required knowledge for the task at hand.
#
# Our API requires specific inclusion of related resourses - that is we do NOT
# want to support wildcard inclusion (e.g. `foo.*`)
#
# The IncludedResourceParams class has three public methods making up its API.
1. http://diplomba.ru/work/111512
Анализ клинико-психологической характеристики тревожно-депрессивного синдрома
Базовые вещи, напрямую относится к депрессии, стоит почитать.
2. http://elibrary.ru/item.asp?id=20781383&
ПОДСИСТЕМА ОПРЕДЕЛЕНИЯ ПСИХОЭМОЦИОНАЛЬНОГО СОСТОЯНИЯ ЧЕЛОВЕКА
Интересно, в статье психоэмоциональное состояние 
описывается как вероятностный автомат(P-система).
Есть вероятность, что по статьям этого автора можно будет создать базовое ТЗ системы с технической стороны .
3. http://elibrary.ru/item.asp?id=20523641