Skip to content

Instantly share code, notes, and snippets.

<div class="info">
<center><h4><%= @keyword.post_survey_message.present? ? @keyword.post_survey_message : t('contacts.thanks.message') %></h4></center>
<br><br>
<script type="text/javascript">
var start=new Date();
start=Date.parse(start)/1000;
var counts=20;
var gonow = false;
function CountDown(){
[GEM_ROOT]/bundler/gems/spree-a68a8add246e/core/lib/spree/preference_access.rb → get
[GEM_ROOT]/bundler/gems/spree-a68a8add246e/core/lib/spree_base.rb → set_user_language
[GEM_ROOT]/gems/activesupport-3.0.7/lib/active_support/callbacks.rb → _run__1476160730195766319__process_action__2715729990199441025__callbacks
[GEM_ROOT]/gems/activesupport-3.0.7/lib/active_support/callbacks.rb → _run_process_action_callbacks
[GEM_ROOT]/gems/activesupport-3.0.7/lib/active_support/callbacks.rb → run_callbacks
[GEM_ROOT]/gems/actionpack-3.0.7/lib/abstract_controller/callbacks.rb → process_action
[GEM_ROOT]/gems/actionpack-3.0.7/lib/action_controller/metal/instrumentation.rb → block in process_action
[GEM_ROOT]/gems/activesupport-3.0.7/lib/active_support/notifications.rb → block in instrument
[GEM_ROOT]/gems/activesupport-3.0.7/lib/active_support/notifications/instrumenter.rb → instrument
[GEM_ROOT]/gems/activesupport-3.0.7/lib/active_support/notifications.rb → instrument
module Spree::PreferenceAccess
def self.included(base)
class << base
def get(key = nil)
key = key.to_s if key.is_a?(Symbol)
return nil unless config = self.instance
# preferences will be cached under the name of the class including this module (ex. Spree::Config)
prefs = Rails.cache.fetch("configuration_#{config.class.name}".to_sym) { config.preferences }
return prefs if key.nil?
@peeps = @people.collect {|z| z.to_hash}
@answers = @answer_sheet.collect { |ax| @question_sheet.questions.collect {|x| x.display_response(ax)}}
@questions = @question_sheet.questions.collect {|y| y.attributes.slice(:kind, :label, :style, :required, :content)}
0.upto(@peeps.length-1) do |p|
hash = Hash.new
hash = {"person" => @peeps[p]}
qa = []
0.upto(@questions.length-1) do |q|
qa[q] = {"q" => @questions[q], "a" => @answers[p][q] }
class Apic
API_ALLOWABLE_FIELDS = {
:user => ["first_name", "last_name", "name", "id", "location", "birthday","locale","gender","interests","friends","fb_id","picture"],
:school => [""],
:friends => ["id", "name"],
}
SCOPE_REQUIRED = {
:user => {
require 'hoptoad_notifier/capistrano'
# This defines a deployment "recipe" that you can feed to capistrano
# (http://manuals.rubyonrails.com/read/book/17). It allows you to automate
# (among other things) the deployment of your application.
# =============================================================================
# REQUIRED VARIABLES
# =============================================================================
# You must always specify the application and repository for every recipe. The
# repository must be the URL of the repository you want this recipe to
# unicorn_ -c /var/www/creativecrash/current/config/unicorn.rb -E production -D
rails_env = ENV['RAILS_ENV'] || 'production'
# 16 workers and 1 master
worker_processes (rails_env == 'production' ? 20 : 2)
preload_app true
# Restart any workers that haven't responded in 30 seconds
#
# This file configures the New Relic RPM Agent. New Relic RPM monitors
# Rails and Java applications with deep visibility and low overhead. For more
# information, visit www.newrelic.com.
#
# Generated March 31, 2011
#
# This configuration file is custom generated for creativecrash
# Here are the settings that are common to all environments:
## Redirect requests to Apache, running on port 8000 on localhost
backend apache {
.host = "ttp.26am.com";
.port = "8080";
}
sub vcl_pipe {
# Note that only the first request to the backend will have
# X-Forwarded-For set. If you use X-Forwarded-For and want to
# have it set for all requests, make sure to have:
# set req.http.connection = "close";
require 'hoptoad_notifier/capistrano'
# This defines a deployment "recipe" that you can feed to capistrano
# (http://manuals.rubyonrails.com/read/book/17). It allows you to automate
# (among other things) the deployment of your application.
# =============================================================================
# REQUIRED VARIABLES
# =============================================================================
# You must always specify the application and repository for every recipe. The
# repository must be the URL of the repository you want this recipe to