Skip to content

Instantly share code, notes, and snippets.

Robert Travis Pierce roberttravispierce

Block or report user

Report or block roberttravispierce

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@roberttravispierce
roberttravispierce / import_pnotes_service.rb
Created May 3, 2019
Rails Service - import_pnotes_service.rb
View import_pnotes_service.rb
require 'csv'
require 'nokogiri'
# Invoke: > ImportPnotesService.new.call
class ImportPnotesService
def call
log = ActiveSupport::Logger.new('log/import_pnotes.log')
puts "\n What is the program ID?"
@roberttravispierce
roberttravispierce / db.rake
Created Apr 27, 2018 — forked from hopsoft/db.rake
Rails rake tasks for dump & restore of PostgreSQL databases
View db.rake
# lib/tasks/db.rake
namespace :db do
desc "Dumps the database to db/APP_NAME.dump"
task :dump => :environment do
cmd = nil
with_config do |app, host, db, user|
cmd = "pg_dump --host #{host} --username #{user} --verbose --clean --no-owner --no-acl --format=c #{db} > #{Rails.root}/db/#{app}.dump"
end
puts cmd
View development.rb
...
# ActionMailer Config
config.action_mailer.perform_deliveries = true
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
config.action_mailer.raise_delivery_errors = true
config.action_mailer.perform_caching = false
# MailCatcher gem settings
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 }
...
View _connect.html.haml
%section.page-header.page-header-sm.parallax.parallax-3{:style => "background-image:url(#{asset_path 'background2.jpg'})"}
.overlay.dark-2
.container
%h2.weight-300.text-white.wow.fadeInUp{"data-wow-delay" => "0.8s"} Connect with Silverlane
%section
.container
.row
.col-md-3.col-sm-3
%hr.margin-top-50/
%p
You can’t perform that action at this time.