Сделайте соответствующие настройки в своей 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
2019/06/04 05:21:50 [debug] 1239#1239: accept on 0.0.0.0:443, ready: 0 | |
2019/06/04 05:21:50 [debug] 1239#1239: posix_memalign: 000055BBAC706B50:512 @16 | |
2019/06/04 05:21:50 [debug] 1239#1239: *130 accept: 85.15.188.96:63602 fd:20 | |
2019/06/04 05:21:50 [debug] 1239#1239: *130 event timer add: 20: 60000:887463 | |
2019/06/04 05:21:50 [debug] 1239#1239: *130 reusable connection: 1 | |
2019/06/04 05:21:50 [debug] 1239#1239: *130 epoll add event: fd:20 op:1 ev:80002001 | |
2019/06/04 05:21:50 [debug] 1239#1239: *130 http check ssl handshake | |
2019/06/04 05:21:50 [debug] 1239#1239: *130 http recv(): 1 | |
2019/06/04 05:21:50 [debug] 1239#1239: *130 https ssl handshake: 0x16 | |
2019/06/04 05:21:50 [debug] 1239#1239: *130 tcp_nodelay |
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 весСтенДома = объёмМатериалСтенДома * плотностьСосны // кг |