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

ToDo

  1. (14) Таблица подтверждения заказа - все документы: форма множественной загрузки документов, поле нажимается за пределами кноки выбора/загрузки документов. Документы "загружаются" даже если ничего не выбрано.
  • попробовать multiple upload
  1. (13)Необходимо изменить тексты договоров на актуальные (можем ли мы это сами изменять?)
  • Сверстать в html

to confirm

  1. (7) нужен шаблон страницы 404 (мы потом накидаем туда текст) Уже есть готовые в public/404.html
Можно хоть любую html’ку скачать с инета
@maxinspace
maxinspace / tt.js
Created January 15, 2017 16:27
TestTask JS
function solution() {
const validationSelect = $("input:radio:checked").val();
switch (validationSelect) {
case "person":
return validatePerson();
break;
case "company":
return validateCompany();
break;
@maxinspace
maxinspace / tt.rb
Last active May 6, 2019 01:51
TestTask ruby
require 'benchmark'
ARRAY = (1..20_000).to_a.shuffle.first(10_000)
def solution_1(a)
result, arr1, arr2 = 0, a, a
arr1.each.with_index do |el, index|
another_index = arr2.rindex(el).abs
1. http://diplomba.ru/work/111512
Анализ клинико-психологической характеристики тревожно-депрессивного синдрома
Базовые вещи, напрямую относится к депрессии, стоит почитать.
2. http://elibrary.ru/item.asp?id=20781383&
ПОДСИСТЕМА ОПРЕДЕЛЕНИЯ ПСИХОЭМОЦИОНАЛЬНОГО СОСТОЯНИЯ ЧЕЛОВЕКА
Интересно, в статье психоэмоциональное состояние 
описывается как вероятностный автомат(P-система).
Есть вероятность, что по статьям этого автора можно будет создать базовое ТЗ системы с технической стороны .
3. http://elibrary.ru/item.asp?id=20523641
@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.
@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 / 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)
# плохой пример
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 / 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

@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.