View Invalidation.java
@Component
public class SkuInvalidator {
@Autowired
private SystemEventSender eventSender;
public void invalidateSku(Long id) {
SystemEvent event = new SystemEventImpl();
event.setType(EventType.CACHE_INVALIDATION.getType());
event.setEnabled(true);
View versions.coffee
# Description
# Look at versions for our various modules and how they relate to framework versions
#
# Dependencies:
# "octonode": "^0.6.4"
# "xml2js": "^0.4.4"
#
# Configuration:
# HUBOT_GITHUB_TOKEN - API token from a GitHub account
#
View ntp.conf
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
driftfile /var/lib/ntp/ntp.drift
# Enable this if you want statistics to be logged.
#statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
View eric-text.html
<b>this is some bold html</b>
<br />
<br />
<p>Now after a couple of line breaks, I have a new paragraph</p>
<p>This is more text in yet another paragraph</p>
<u></i>this is some cool underlined and italicized text</i></u>
View MyCustomPersistenceHandler.java
@Override
public DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper inspectHelper) throws ServiceException {
try {
PersistencePerspective persistencePerspective = persistencePackage.getPersistencePerspective();
Map<MergedPropertyType, Map<String, FieldMetadata>> allMergedProperties = new HashMap<MergedPropertyType, Map<String, FieldMetadata>>();
//Grab the default properties for the Sku
Map<String, FieldMetadata> properties = inspectHelper.getSimpleMergedProperties(PaymentResponseItem.class.getName(), persistencePerspective);
//Create the metadata for the collection
View MyCustomPersistenceHandler
@Override
public DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper inspectHelper) throws ServiceException {
try {
PersistencePerspective persistencePerspective = persistencePackage.getPersistencePerspective();
Map<MergedPropertyType, Map<String, FieldMetadata>> allMergedProperties = new HashMap<MergedPropertyType, Map<String, FieldMetadata>>();
//Grab the default properties for the Sku
Map<String, FieldMetadata> properties = inspectHelper.getSimpleMergedProperties(PaymentResponseItem.class.getName(), persistencePerspective);
//Create the metadata for the collection
View MyCustomPersistenceHandler
@Override
public DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper inspectHelper) throws ServiceException {
try {
PersistencePerspective persistencePerspective = persistencePackage.getPersistencePerspective();
Map<MergedPropertyType, Map<String, FieldMetadata>> allMergedProperties = new HashMap<MergedPropertyType, Map<String, FieldMetadata>>();
//Grab the default properties for the Sku
Map<String, FieldMetadata> properties = inspectHelper.getSimpleMergedProperties(PaymentResponseItem.class.getName(), persistencePerspective);
//Create the metadata for the collection
View gist:5214678
@Override
public FilterCriterionProvider getBetweenProvider(AssociationPath path) {
if (!path.equals(AssociationPath.ROOT)) {
return super.getBetweenProvider(path);
}
return new SimpleFilterCriterionProvider(FilterDataStrategy.NONE, 2) {
View dependency-tree
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerce Demo Site 1.6.0-GA
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ broadleaf-demo-site ---
[INFO] org.broadleafcommerce:broadleaf-demo-site:war:1.6.0-GA
[INFO] +- org.broadleafcommerce:broadleaf-framework-web:jar:1.6.0-GA:compile
[INFO] | +- org.springframework:spring-webmvc:jar:3.0.5.RELEASE:compile
View haml_converter.rb
# _plugins/haml_converter.rb
module Jekyll
class HamlConverter < Converter
safe true
def setup
return if @setup
require 'haml'
@setup = true