rails new store-backend
gem 'spree_backend', github: 'spree/spree'
Spree::Product.class_eval do | |
... | |
_validators.reject!{ |key, value| key == :shipping_category } | |
_validate_callbacks.each do |callback| | |
callback.raw_filter.attributes.reject! { |key| key == :shipping_category } if callback.raw_filter.respond_to?(:attributes) | |
end | |
... | |
end |
Spree::UserSessionsController.class_eval do | |
def redirect_back_or_default(default) | |
if spree_current_user && spree_current_user.has_spree_role?("admin") | |
redirect_to(admin_products_path) | |
# Commenting out line below to allow redirecting to | |
# admin/products page | |
#redirect_to(session["spree_user_return_to"] || default) | |
session["spree_user_return_to"] = nil | |
else | |
redirect_to(default) |
Method 1- | |
Add following to MainViewController.m | |
-(BOOL)prefersStatusBarHidden{ | |
return YES; | |
} | |
Method 2- | |
Within your project target in xCode, configure these settings: |
class App.Views.SectionTabsView extends Backbone.View | |
template: JST['clients/section_tabs'] | |
events: | |
'click li': 'menuItemClicked' | |
render: -> | |
@$el.append @template() | |
menuItemClicked: (e) -> |
## | |
# Main view of app with left/right slide panels. | |
# The dashboard also houses the message list | |
# and new message form. To access anything other | |
# than a list of messages, we navigate to a new | |
# page | |
# | |
# @class DashboardView | |
# | |
define [ |
regExp = /\(([^)]+)\)/; | |
times = [] | |
timesPretty = "" | |
if ARGV.length < 2 | |
puts "Needs 2 args input to parse: 1. audio path and 2. text that matches audio" | |
else | |
# Make variables from parameters | |
audioPath = ARGV[0] | |
text = ARGV[1] |
package recognizer; | |
/* | |
* Copyright 1999-2004 Carnegie Mellon University. | |
* Portions Copyright 2004 Sun Microsystems, Inc. | |
* Portions Copyright 2004 Mitsubishi Electric Research Laboratories. | |
* All Rights Reserved. Use is subject to license terms. | |
* | |
* See the file "license.terms" for information on usage and | |
* redistribution of this file, and for a DISCLAIMER OF ALL |
widgetAtPoint: (point) -> | |
widgetWithHighestZ = | |
_.max @widgets, (widget) -> | |
if widget.getIsVisible() and widget.isPointInside(point) | |
return widget.getZOrder() unless typeof widget.getZOrder isnt "function" | |
return widgetWithHighestZ if widgetWithHighestZ | |
for widget,i in @widgets | |
if widget.getIsVisible() and widget.isPointInside(point) |
$('#c9_android_or_ios button').removeClass('active') | |
$('#c9_android_or_ios button:nth-child(2)').addClass('active') |