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
| #!/bin/sh | |
| echo Please provide git repo: | |
| read git | |
| echo Please provide url name: | |
| read name | |
| echo Please provide db name: | |
| read dbname | |
| git clone $git; |
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
| def email_notification_params | |
| { | |
| penalty: ((reader_with_book.book.penalty_per_hour + 0.005)* 100).to_i / 100.0, | |
| hours_to_deadline: ((issue_datetime.to_i - Time.now.to_i) / 3600) , | |
| reader_name: reader_with_book.name , | |
| book_tit: reader_with_book.book.title , | |
| book_aut: reader_with_book.book.author.name |