Skip to content

Instantly share code, notes, and snippets.

View manjunath-nm89's full-sized avatar

Manjunath Manoharan manjunath-nm89

  • Chronus Corporation
  • Seattle, Washington
View GitHub Profile
source 'http://rubygems.org'
gem 'rails', '3.2.12'
gem "mysql2"
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'json'
def render_countdown(year,month,date,hours,mins,secs)
# year - 4 digits. ex. 2011
# month - 3 Initial alphabets
# date - 2 digits, ex. 01,21
# hours - 24 hour format
# mins - 2 digits. ex. 09,21
# secs - 2 digits. ex.05,55
@start_time = Time.now.utc