This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
####################################################################################################### | |
############################################## Google maps ########################################## | |
####################################################################################################### | |
class @Gmaps4RailsGoogle extends Gmaps4Rails | |
constructor: -> | |
super | |
#Map settings | |
@map_options = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bf7&ToState=CA&To=%2B14156399957&ToCountry=US&FromCountry=US&SmsMessageSid=SMc00387cb93bbe6e0aadeb3899dd3dbf7&ApiVersion=2010-04-01&FromCity=SAN+FRANCISCO&SmsStatus=received&From=%2B14152795150&FromZip=94949" for 23.22.119.166 at 2012-12-07 09:12:43 +0000 | |
2012-12-07T09:12:43+00:00 app[web.1]: Sms arrived!! Body: call @j from +14152795150 | |
2012-12-07T09:12:43+00:00 app[web.1]: Recipient for call: @j | |
2012-12-07T09:12:45+00:00 app[web.1]: | |
2012-12-07T09:12:45+00:00 app[web.1]: RuntimeError (No caller found. Invalid proxy number or no number in system.): | |
2012-12-07T09:12:45+00:00 app[web.1]: lib/sms_commands.rb:15:in `initialize' | |
2012-12-07T09:12:45+00:00 app[web.1]: app/models/meeting_manager.rb:144:in `new' | |
2012-12-07T09:12:45+00:00 app[web.1]: app/models/meeting_manager.rb:144:in `gen_incoming_sms_response' | |
2012-12-07T09:12:45+00:00 app[web.1]: app/models/meeting_manager.rb:120:in `gen_incoming_response' | |
2012-12-07T09:12:45+00:00 app[web.1]: app/controllers/twilio_controller.rb:25:in `index' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:css | |
.amt, .exp{ | |
border: 1px solid #e8e8e8; | |
padding: 5px;} | |
- @order = Order.new | |
= form_for @order, :remote => true, html: { class: 'form-horizontal well' } do |f| | |
- if @order.errors.any? | |
.error_messages | |
%h2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= form_for(@contact, :validate => true) do |f| | |
= f.hidden_field :phone_book_id, :value => @contact.phone_book.blank? ? current_user.phone_book.id : @contact.phone_book.id | |
.flds | |
.label-field= f.label :name, :class => "label-field" | |
.input-field= f.text_field :name , :class => "text-field medium-field" | |
.clear{:style => "height: 10px;"} | |
.flds | |
.label-field= f.label :phone_number, :class => "label-field" | |
.input-field= f.text_field :phone_number , :class => "text-field medium-field" | |
.clear{:style => "height: 10px;"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ArgumentError (invalid byte sequence in US-ASCII): | |
better_errors (0.3.2) lib/better_errors/stack_frame.rb:19:in `from_exception' | |
better_errors (0.3.2) lib/better_errors/error_page.rb:52:in `backtrace_frames' | |
better_errors (0.3.2) lib/better_errors/middleware.rb:74:in `log_exception' | |
better_errors (0.3.2) lib/better_errors/middleware.rb:54:in `rescue in app_call' | |
better_errors (0.3.2) lib/better_errors/middleware.rb:51:in `app_call' | |
better_errors (0.3.2) lib/better_errors/middleware.rb:45:in `call' | |
sass (3.2.5) lib/sass/plugin/rack.rb:54:in `call' | |
warden (1.2.1) lib/warden/manager.rb:35:in `block in call' | |
warden (1.2.1) lib/warden/manager.rb:34:in `catch' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# package for trees | |
library(rpart) | |
# package including data from Elements of Statistical Learning | |
library(ElemStatLearn) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DailyWorker | |
include Sidekiq::Worker | |
include Sidetiq::Schedulable | |
# Daily at midnight | |
recurrence { daily } | |
def perform | |
User.includes(:profile).where("profiles.daily_email" => true) do |u| | |
ReminderMailer.remind_email(u).deliver |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[out :: 54.221.217.103] /home/deploy/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:216: warning: Insecure world writable dir /var/www in PATH, mode 040777 | |
** [out :: 54.221.217.103] WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8 | |
** [out :: 54.221.217.103] | |
** [out :: 54.221.217.103] rake aborted! | |
** [out :: 54.221.217.103] undefined method `default_values' for #<Class:0x000000067598f0> | |
** [out :: 54.221.217.103] /var/www/inteliset.com/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.14/lib/active_record/dynamic_matchers.rb:55:in `method_missing' | |
** [out :: 54.221.217.103] /var/www/inteliset.com/releases/20131122030549/app/models/user.rb:14:in `<class:User>' | |
** [out :: 54.221.217.103] /var/www/inteliset.com/releases/20131122030549/app/models/user.rb:1:in `<top (required)>' | |
** [out :: 54.221.217.103] /var/www/inteliset.com/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require' | |
** [out : |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'csv' | |
CSV.foreach('spec/fixtures/voters/hi/2013-03-07.clean', headers: true, col_sep: ',') do |row| | |
date = Date.strptime(row['registration_date'], '%m%d%y') rescue nil | |
p row['registration_date'] unless date | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load 'deploy/assets' | |
# main details | |
set :rails_env, 'production' | |
set :application, "cookthisforme.com" | |
role :web, '54.221.217.103' | |
role :app, '54.221.217.103' | |
role :db, '54.221.217.103', :primary => true | |
set :user, "deploy" | |
set :deploy_to, "/var/www/#{application}" |