Skip to content

Instantly share code, notes, and snippets.

View rantler's full-sized avatar

Randy Antler rantler

  • Computer Diversions
  • Seattle, WA
  • 12:50 (UTC -07:00)
View GitHub Profile
@rantler
rantler / sum.rb
Last active August 29, 2015 14:17 — forked from davingee/gist:8278b9f6c66f0c53f5e9
Fork of SumOfEach with "equals5" solution
# gem install awesome_print
# gem install benchmark
# gem install pry
require 'awesome_print'
require 'pry'
require 'benchmark'
class SumOfEach
attr_accessor :number_to_equal, :array, :answers, :array_count, :to_remove, :answered
# encoding: utf-8
namespace :db do
desc "Import DB Data"
namespace :import do
desc "Import production db to whatever 'ENV['to']' db is set to and s3 sync"
task :production => :environment do
## example rake db:import:production to=qa s3=true
## or no s3