This file contains 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
def get_datetime_converted_from_time | |
time = Time.zone.now | |
splited_time = params[:object][:time].split(':') | |
local_time = Time.local( | |
time.year, | |
time.month, | |
time.day, | |
splited_time.first.to_i, | |
splited_time.last.to_i,) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
# Created by Octave 3.8.0, Fri Mar 02 15:06:33 2018 JST <seiyamaeda@SeiyanoMacBook-Pro.local> | |
# name: A | |
# type: matrix | |
# rows: 3 | |
# columns: 2 | |
1 2 | |
2 4 | |
5 6 | |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
$ ruby -v | |
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux] | |
$ bundle exec rails -v | |
Rails 5.1.4 |
This file contains 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
/ the way it uses font awesome | |
= link_to '#', data: { toggle: 'modal', target: '#hoge-modal' } do | |
i.fa.fa-question-circle | |
end | |
== render partial: 'layouts/shared/modals/hoge' |
This file contains 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
gem 'kaminari' |
This file contains 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
$(document).on 'turbolinks:load', -> | |
do -> | |
$('.disabled-link').click (e) -> | |
e.preventDefault() | |
return |
This file contains 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
gem 'cocoon' | |
gem 'jquery-rails' |