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
691477, 1345874, 303909, 1374983, 1005458, 341234, 1538934, 1402265, 1122967, 784085, 728031, 197538, 602621, 1440133, 1520844, 1224198, 1344764, 284695, 333082, 1559155, 1583513, 1087758, 65671, 1621458, 76849, 1606828, 323998, 1450291, 212727, 1421541, 478047, 1073197, 353474, 1624629, 1604880, 1257348, 1475923, 1579086, 1365158, 683104, 1517217, 1390633, 1172876, 1523697, 1633621, 1491292, 776317, 31898, 1630371, 1011304, 1341712, 1506570, 1561084, 292424, 1577633, 1521538, 1279276, 1543392, 1299017, 1238848, 1210778, 1367111, 414594, 1635549, 865544, 952823, 1617361, 653669, 671375, 215161, 1522608, 473299, 625959, 178793, 1362278, 1247033, 445375, 1569047, 172359, 1636064, 571017, 1370254, 1013556, 195528, 826503, 44450, 947712, 1182865, 223882, 1608380, 1475949, 1571881, 1338797, 1596429, 298808, 1247527, 710431, 72868, 1603158, 1449482, 201367, 198277, 1156682, 1608315, 1061898, 1632370, 1605190, 486165, 35914, 1143243, 1591883, 1610120, 81887, 262321, 1407756, 335359, 168260, 1434549, 571329, 1609004,
@maxinspace
maxinspace / centrifugo.js
Created September 2, 2020 18:19
Centrifugo JS example
var centrifuge = new Centrifuge('wss://mesh.rocketbank.sexy/connection/websocket', {
refreshEndpoint: "https://vault34.rocketbank.ru/api/admins/push_authorizations",
refreshHeaders: { 'X-API-VERSION': 'v2', 'Authorization': '<<TOKEN>>' },
subscribeEndpoint: 'https://vault34.rocketbank,ru/api/admins/push_authorizations/subscribe',
subscribeHeaders: { 'X-API-VERSION': 'v2', 'Authorization': '<<TOKEN>>' }
});
authToken = <<POST https://vault34.rocketbank.ru/api/admins/push_authorizations -> token >>
centrifuge.setToken(authToken);
centrifuge.subscribe("presence-tickets", function(message) { });
centrifuge.subscribe("$presence-tickets-admin-1251", function(message) { console.log(message) });
@maxinspace
maxinspace / history.txt
Last active January 28, 2020 09:49
Ari Prehistory (Vergil)
Ari Tealeaf, in reality - Viscountess Aristea Beauregard from Waterdeep.
Nickname comes from name Aristea, like Ari /s/ Tea \leaf\
So it turned into Ari Tealeaf.
Noble from birth, Viscountess Aristea Beauregard was born in city of Waterdeep,
in the family of local noble Aristos "Silver Lion" and Ariadne "Ruby of the North" Beauregard.
Their residence was located in the in the northeastern portion of the city,
named North Ward, the home of the nobility, high politicians, and moneyed classes.
@maxinspace
maxinspace / quint.txt
Created January 28, 2020 09:20
Ari (Caldaria) Prehistory
Ari Tealeaf, in reality - Viscountess Aristea Beauregard from Waterdeep.
Noble from birth, Viscountess Aristea Beauregard was born in city of Waterdeep,
in the family of local noble Aristos "SIlver Lion" and Ariadne "Ruby of the North" Beauregard.
Their residence was located in the in the northeastern portion of the city, named North Ward,
the home of the nobility, high politicians, and moneyed classes.
Aristea was the third child in the family,
following by the eldest brother Aristarchus with the second eldest sister Alyssa,
and as following, she was the most joy and happiness in family,
@maxinspace
maxinspace / locales_management.md
Last active June 19, 2017 11:27
Управление переводами.

Требуется придумать workflow для поддерживания актуальных версий переводов. (каждую неделю/две/перед деплоем)

Проблема

Переводы быстро устаревают в ходе разработки.

Разработчики не могут сами добавлять переводы для Spanish и Portugal локалей.

Решение:

Workflow для работы с переводами, который будет взаимодействовать с переводчиками.

require 'spec_helper'
describe Account do
describe "#validations" do
subject { Account.new }
it { is_expected.to belong_to(:account_type)}
it { is_expected.to belong_to(:account_class)}
it { is_expected.to belong_to(:vendor)}
@maxinspace
maxinspace / Gemfile
Created April 18, 2017 17:59 — forked from palkan/Gemfile
RSpec profiling with RubyProf and StackProf
gem 'stackprof', require: false
gem 'ruby-prof', require: false
@maxinspace
maxinspace / rspec-hell.rb
Created April 18, 2017 17:59 — forked from palkan/rspec-hell.rb
RSpec Hell: run examples concurrently (using threads)
module RSpecHell
def run_examples(reporter)
return super unless metadata[:hell] && !(metadata[:parent_example_group] && metadata[:parent_example_group].key?(:hell))
pool_size = ENV['HELL'].to_i
q = Queue.new
ordering_strategy.order(descendant_filtered_examples).each { |ex| q << ex }
workers = []
results = []

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;