Skip to content

Instantly share code, notes, and snippets.

Marc Nuri manusa

Block or report user

Report or block manusa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am manusa on github.
  • I am marcnuri (https://keybase.io/marcnuri) on keybase.
  • I have a public key whose fingerprint is 84B4 C997 16B6 93EC 08ED 6C6B 4272 E8D6 917C B771

To claim this, I am signing this object:

@manusa
manusa / CustomJpaConfiguration.java
Created Dec 8, 2015
Configuration file for Spring-Boot which enables EclipseLink as the default JPA provider and uses Tomcat's DataSourceFactory to create a connection pooled DataSource.
View CustomJpaConfiguration.java
import com.marcnuri.transporte.rest.service.CriteriaJpaRepositoryFactoryBean;
import org.eclipse.persistence.config.BatchWriting;
import org.eclipse.persistence.config.PersistenceUnitProperties;
import org.eclipse.persistence.logging.SessionLog;
import org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration;
import org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.orm.jpa.JpaTransactionManager;
View JacksonStringEscape.groovy
import org.codehaus.jackson.SerializableString
import org.codehaus.jackson.io.CharacterEscapes
/**
* Answer to:
* http://stackoverflow.com/questions/34409083/jackson-object-mapper-with-custom-escapes-have-limit-on-field-length
*
* Created by Marc Nuri on 2015-12-23.
*/
@Grab('org.codehaus.jackson:jackson-core-asl:1.9.13')
@Grab('org.codehaus.jackson:jackson-mapper-asl:1.9.13')
View script-jq-alt.js
/**
* Copyright (c) 2007 Matej Knopp, InMethod s.r.o.
* All rights reserved.
*/
if (typeof(InMethod) === "undefined") {
InMethod = { };
}
You can’t perform that action at this time.