Skip to content

Instantly share code, notes, and snippets.

View rmannibucau's full-sized avatar

Romain Manni-Bucau rmannibucau

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!--
1. mv src/main/webapp/* in src/main/resources/META-INF/resources/*
2. comment in web.xml the datasource if you don't have MySQL set up
3. mvn clean package && java -jar target/JDays2016-1.0-SNAPSHOT.jar --as-war
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>fish.payara.examples</groupId>
<?xml version="1.0" encoding="UTF-8"?>
<!--
JDays1 tomee executable war
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>fish.payara.examples</groupId>
<artifactId>JDays2016</artifactId>
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
Index: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/CollectionParam.java
===================================================================
--- openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/CollectionParam.java (revision 1535760)
+++ openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/CollectionParam.java (working copy)
@@ -18,6 +18,7 @@
*/
package org.apache.openjpa.jdbc.kernel.exps;
+import java.lang.reflect.Array;
import java.util.Arrays;
I propose to open another thread about Mark
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2013/10/23 Mark Struberg <struberg@yahoo.de>:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.superbiz</groupId>
<artifactId>demoit</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
scala> def ptime[A](f: => A) = {
| val t0 = System.nanoTime
| val ans = f
| printf("Elapsed: %.3f sec\n",(System.nanoTime-t0)*1e-9)
| ans
| }
ptime: [A](f: => A)A
scala> ptime((1 to 8).size)
Elapsed: 0.000 sec
@rmannibucau
rmannibucau / gist:6128964
Last active December 20, 2015 12:09
asm4 module for commons-proxy2
Index: asm4/src/test/java/org/apache/commons/proxy2/javassist/TestAsm4ProxyFactory.java
===================================================================
--- asm4/src/test/java/org/apache/commons/proxy2/javassist/TestAsm4ProxyFactory.java (revision 0)
+++ asm4/src/test/java/org/apache/commons/proxy2/javassist/TestAsm4ProxyFactory.java (working copy)
@@ -0,0 +1,10 @@
+package org.apache.commons.proxy2.javassist;
+
+import org.apache.commons.proxy2.AbstractSubclassingProxyFactoryTestCase;
+
+public class TestAsm4ProxyFactory extends AbstractSubclassingProxyFactoryTestCase
@rmannibucau
rmannibucau / gist:6125125
Created July 31, 2013 19:07
asm4-shaded commons-proxy impl
Index: src/test/java/org/apache/commons/proxy/factory/asm4/ASMProxyFactoryTest.java
===================================================================
--- src/test/java/org/apache/commons/proxy/factory/asm4/ASMProxyFactoryTest.java (revision 0)
+++ src/test/java/org/apache/commons/proxy/factory/asm4/ASMProxyFactoryTest.java (working copy)
@@ -0,0 +1,110 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0