Сделайте соответствующие настройки в своей IDE, например для Visual Studio Code вы можете установить плагины:
demo: https://codepen.io
simple select with searchable, multiple and creatable:
<CustomSelect
items={items}
Сделайте соответствующие настройки в своей IDE, например для Visual Studio Code вы можете установить плагины:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################### | |
# 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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",