- Github: https://github.com
- Gitlab: https://about.gitlab.com/
- Bitbucket: https://bitbucket.org/
- Twitter Bootstrap: http://getbootstrap.com/
- Foundation Zurb: http://foundation.zurb.com/
| var holidays =[] | |
| //holiday model ruby, table that save all the holidays federal | |
| holidays = "<%= Holiday.all.map{ |h| h.date.strftime("%Y-%m-%d") } %>"; | |
| /*example "2015-10-12", "2015-11-02", "2015-11-16", "2015-12-08", "2015-12-25", "2016-01-01", | |
| "2016-01-11", "2016-03-21", "2016-03-24", "2016-03-25", "2016-05-01", "2016-05-09", "2016-05-30", | |
| "2016-06-06", "2016-07-04", "2016-07-20", "2016-08-07", "2016-08-15", "2016-10-17", "2016-11-07", | |
| "2016-11-14", "2016-12-08", "2016-12-25"]*/ | |
| $('.date').datepicker({ |
| def date_diff(date1, date2) | |
| month = (date2.year * 12 + date2.month) - (date1.year * 12 + date1.month) | |
| month.divmod(12) | |
| end | |
| #for get the years | |
| date_diff(date, Date.today)[0] | |
| #for get the months | |
| date_diff(date, Date.today)[1] |
| class Array | |
| <<-DOC | |
| 8, 3, -2, -7, -12, ... | |
| 3 - 8 = -5 | |
| -2 - 3 = -5 | |
| -7 - (-2) = -5 | |
| -12 - (-7) = -5 | |
| d = −5. |
| gem 'wicked', '~> 1.3' | |
| gem 'wicked_pdf', '~> 1.0', '>= 1.0.6' | |
| gem 'wkhtmltopdf-binary', '~> 0.12.3' | |
| group :production, :staging do | |
| gem 'wkhtmltopdf-heroku', '~> 2.12', '>= 2.12.3.0' | |
| end |
| curl -X POST -d '{title: "foo", body: "example in makeitreal wow", userId: 1 }' http://jsonplaceholder.typicode.com/posts |
Add on Heroku add-ons
https://elements.heroku.com/addons/rollbar
Install Gem
Add this line to your application's Gemfile:
gem 'rollbar'