Skip to content

Instantly share code, notes, and snippets.

<?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
<?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
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
.footer {
color:white;
font-family: OpenSansSemibold;
font-size: 12px;
padding:2px;
padding-bottom: 4px;
//text-align: center;
a {
color:white;
margin-right: 20px;
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 |
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)
@abrambailey
abrambailey / gist:dceb8f450b6f139fab2a
Created August 10, 2014 17:15
How to add Spree to an existing Ruby on Rails application with devise authentication
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
@abrambailey
abrambailey / geo_helper.rb
Created October 25, 2014 02:59
MaxMind GeoIP2 Ruby Helper file
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|
#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)
@abrambailey
abrambailey / EnglishHonorifics
Created February 9, 2015 23:12
English honorifics array
[
'Mr',
'Ms',
'Miss',
'Mrs',
'Mx',
'Master',
'Sir',
'Madam',
'Dame',