git branch
=>
* master
git checkout -b EDW-1234-task_short_name
demo: https://codepen.io
simple select with searchable, multiple and creatable:
<CustomSelect
items={items}
Сделайте соответствующие настройки в своей IDE, например для Visual Studio Code вы можете установить плагины:
<div id="app"></div> |
module Api | |
module V2 | |
module ApiHelper | |
## Общий метод генерации ключей для кэша redis | |
def self.redis_key(params) | |
params[:locale] = I18n.locale | |
params_keys = params.keys.map(&:to_s).sort.map(&:to_sym) | |
['.', params_keys.map { |key| "#{key}:#{params[key]}" }.join('&'), '.'].join | |
end | |
end |
################################################################### | |
# RAILS_ENV=test bundle exec rails db:migrate:reset | |
# RAILS_ENV=test rspec spec/integration/v2/teacher_class_spec.rb | |
################################################################### | |
Finished in 6.01 seconds (files took 7.45 seconds to load) | |
10 examples, 1 failure | |
Failed examples: |
# frozen_string_literal: true | |
require 'elasticsearch' | |
connection_params = { | |
log: false, | |
} | |
connection_params[:user] = ENV['ELASTICSEARCH_USERNAME'] || 'elastic' | |
connection_params[:password] = ENV['ELASTICSEARCH_USERPASSWORD'] || 'elastic' | |
connection_params[:host] = ENV['ELASTICSEARCH_HOST'] || 'localhost' |
const длинаДома = 12 // м | |
const ширинаДома = 11 // м | |
const высотаДома = 6 // м | |
const периметрДомаСПятойСтеной = (длинаДома + высотаДома) * 3 // м | |
const сечениеБруса = 0.18 * 0.18 // м² | |
const объёмОдногоВенца = периметрДомаСПятойСтеной * сечениеБруса // м³ | |
const количествоВенцов = 6 / 0.18 // шт | |
const объёмМатериалСтенДома = объёмОдногоВенца * количествоВенцов // м³ | |
const плотностьСосны = 500 // кг/м³ | |
const весСтенДома = объёмМатериалСтенДома * плотностьСосны // кг |
[ 0] "",
[ 1] "!.e",
[ 2] "!mail.ru",
[ 3] ",ail.ru",
[ 4] ",mail.ru",
[ 5] "-.ru",
[ 6] ". f. rfj",
[ 7] ".ru",
[ 8] "/gmail.com",
#!/usr/bin/env ruby | |
# find and replace incorrect field values in elasticsearch indexes. | |
# Run: | |
# ruby ./bin/fix_elk_attribute_conflict elk_user=<name> elk_password=<password> index_type=<index_type> host=<host_ip> | |
# port=<host_port> attribute_name=<attribute_name> attribute_check_regexp='^\d+$' ssl=true | |
# name, password - nginx basic auth credentials | |
# index_type=<index_type> - type of elasticsearch indexes | |
# host=<host_ip> port=<host_port> - host&port of elasticsearch node | |
# attribute_name=<attribute_name> - name of field which need to correct | |
# attribute_check_regexp - regexp for check if value is String |