Skip to content

Instantly share code, notes, and snippets.

View VoronoyAlexandr's full-sized avatar
👀

Alexandr Voronoy VoronoyAlexandr

👀
View GitHub Profile
@Stepa4man
Stepa4man / install-project.sh
Created September 25, 2018 09:42
Install new project
#!/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;
@Fokusnica
Fokusnica / email_notification.rb
Last active August 29, 2015 14:24
email_notification
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