Skip to content

Instantly share code, notes, and snippets.

View justvitalius's full-sized avatar

Vitaly Mineev justvitalius

  • Sberbank-Technology
  • Saint-Petersburg
View GitHub Profile
Rake task for finding unused images in rails app.
It requires 'ack' http://betterthangrep.com/
MacOS: brew install ack
Linux: apt-get install ack-grep
Before lunch a task put .ackrc to home directory like ~/.ackrc
require 'xpath'
module Features
module SelectDatesAndTimes
# select_date DateTime.now, from: 'label_name'
def select_date (date, options = {})
date = Date.parse(date.to_s)
# lookup id prefix by label