This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You under the Apache License, Version 2.0 | |
(the "License"); you may not use this file except in compliance with | |
the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You under the Apache License, Version 2.0 | |
(the "License"); you may not use this file except in compliance with | |
the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
This file contains 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
searchable do | |
text :name, :as => :name_textp | |
text :full_name, :as => :full_name_textp | |
end | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with |
This file contains 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
.footer { | |
color:white; | |
font-family: OpenSansSemibold; | |
font-size: 12px; | |
padding:2px; | |
padding-bottom: 4px; | |
//text-align: center; | |
a { | |
color:white; | |
margin-right: 20px; |
This file contains 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
06/17/14 15:47:24:884 | [INFO] | | OOBE | DE | | | | 656 | *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* | |
06/17/14 15:47:24:884 | [INFO] | | OOBE | DE | | | | 656 | Visit http://www.adobe.com/go/loganalyzer/ for more information | |
06/17/14 15:47:24:884 | [INFO] | | OOBE | DE | | | | 656 | *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* | |
06/17/14 15:47:24:884 | [INFO] | | OOBE | DE | | | | 656 | *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* | |
06/17/14 15:47:24:884 | [INFO] | | OOBE | DE | | | | 656 | START - Installer Session | |
06/17/14 15:47:24:884 | [INFO] | | OOBE | DE | | | | 656 | *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* | |
06/17/14 15:47:24:884 | [INFO] | | OOBE | DE | | | | 656 | RIBS version: 8.0.0.15 | |
06/17/14 15:47:24:884 | [INFO] | | OOBE | DE | | | | 656 | Win OS version: 6.2.0.0 64 bit Type: 1 | |
06/17/14 15:47:24:884 | |
This file contains 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' | |
require 'street_address' | |
require 'logger' | |
log = Logger.new(STDERR) | |
count = 0 | |
# puts CSV.generate(ARGV[1]) do |csv| | |
CSV.foreach(ARGV[0], :headers => true) do |row| | |
if (count == 0) |
This file contains 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
gem 'spree', github: 'spree/spree', :branch => '2-3-stable' | |
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-3-stable' | |
$ bundle install | |
$ rails g spree:install --migrate=false --sample=false --seed=false | |
config/initializers/spree.rb by changing this line: Spree.user_class = "Spree::User" to this: Spree.user_class = "User" | |
$ rake spree_auth:install:migrations |
This file contains 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
module GeoHelper | |
def maxmind_locate | |
uri = URI("https://geoip.maxmind.com/geoip/v2.1/city/#{request.remote_ip}?pretty") | |
Net::HTTP.start(uri.host, uri.port, | |
:use_ssl => uri.scheme == 'https', | |
:verify_mode => OpenSSL::SSL::VERIFY_NONE) do |http| |
This file contains 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
#config/boot.rb is loaded | |
require File.expand_path('../boot', __FILE__) | |
#reuquires all the railties (active model, active record, etc) | |
require 'rails/all' | |
if defined?(Bundler) | |
# If you precompile assets before deploying to production, use this line | |
#Bundler.require(*Rails.groups(:assets => %w(development test))) | |
Bundler.require(*Rails.groups(:assets => %w(development test))) if defined?(Bundler) |
This file contains 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
[ | |
'Mr', | |
'Ms', | |
'Miss', | |
'Mrs', | |
'Mx', | |
'Master', | |
'Sir', | |
'Madam', | |
'Dame', |