Skip to content

Instantly share code, notes, and snippets.

View gdenning's full-sized avatar

Geoff Denning gdenning

View GitHub Profile
package com.elasticpath.plugins.pickuprequiredaddtocartvalidator.extensions;
import java.time.LocalDate;
import java.time.temporal.ChronoUnit;
import java.util.Collection;
import java.util.Collections;
import org.apache.commons.lang3.StringUtils;
import org.pf4j.Extension;

Keybase proof

I hereby claim:

  • I am gdenning on github.
  • I am gdenning (https://keybase.io/gdenning) on keybase.
  • I have a public key whose fingerprint is 2B00 981A D769 7E2D 8AFF DED9 6F47 90F8 31CC BA83

To claim this, I am signing this object:

@gdenning
gdenning / CustomerDaoImpl.java
Created February 29, 2012 22:58
How to configure OpenJPA using Spring 3 with Annotation-Based Transactions
package com.sample.dao.impl
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
@gdenning
gdenning / activemq.properties
Created August 24, 2011 06:00 — forked from bulain/jms_spring.xml
JMS spring config
jms.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
jms.provider.url=tcp://localhost:61616
jms.factory.url.pkgs=
jms.factory.name=ConnectionFactory
jms.queue.name=demo.A
@gdenning
gdenning / gist:1155333
Created August 18, 2011 21:48
Spring 3 web.xml with Log4jConfigListener and DispatcherServlet
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>My App</display-name>
<context-param>
<param-name>log4jConfigLocation</param-name>
@gdenning
gdenning / programming-achievements.md
Created August 9, 2011 18:07 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer

Learn a variety of programming paradigms

  • Write a program in assembly language
  • Write an application in a functional language
  • Write an application in an object-oriented language
  • Write an application in a prototype-based language
  • Write an application in a logic programming language

Experience the ins and outs of programming for different platforms

@gdenning
gdenning / dao-context.xml
Created August 9, 2011 06:38
Spring 3 Annotation-Based Transaction Manager Configuration for Hibernate
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:security="http://www.springframework.org/schema/security"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd