This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javaetmoi.logback; | |
import ch.qos.logback.classic.Level; | |
import ch.qos.logback.classic.Logger; | |
import ch.qos.logback.classic.LoggerContext; | |
import ch.qos.logback.classic.encoder.PatternLayoutEncoder; | |
import ch.qos.logback.classic.joran.action.JMXConfiguratorAction; | |
import ch.qos.logback.classic.jul.LevelChangePropagator; | |
import ch.qos.logback.classic.spi.ILoggingEvent; | |
import ch.qos.logback.core.Appender; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>AngularJS from scratch</title> | |
</head> | |
<body class="container text-center"> | |
<h1 class="page-header" ng-bind="labs.titre">AngularJS from scratch</h1> | |
<input type="text" ng-model="labs.titre"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javaetmoi.core.persistence.hibernate; | |
import java.util.Collections; | |
import java.util.Set; | |
import org.hibernate.jpa.boot.archive.internal.StandardArchiveDescriptorFactory; | |
import org.hibernate.jpa.boot.scan.spi.AbstractScannerImpl; | |
import org.hibernate.jpa.boot.scan.spi.ScanOptions; | |
import org.hibernate.jpa.boot.scan.spi.ScanResult; | |
import org.hibernate.jpa.boot.spi.ClassDescriptor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.javaetmoi.samples</groupId> | |
<version>1.0-SNAPSHOT</version> | |
<artifactId>jasmine-test-webapp</artifactId> | |
<name>JavaEtMoi Samples :: ${project.artifactId} - ${project.packaging}</name> | |
<packaging>war</packaging> | |
<description>Maven configuration to test JavaScript code of a Java web app with Jasmine et PhantomJS</description> | |
<inceptionYear>2014</inceptionYear> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.cxf.binding.soap.SoapMessage; | |
import org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor; | |
import org.apache.cxf.endpoint.ClientImpl; | |
import org.apache.cxf.interceptor.Fault; | |
import org.apache.cxf.phase.Phase; | |
/** | |
* Fix CXF memory leak by removing attachments once the SOAP message was sent. | |
*/ | |
public class ClearAttachmentsOutInterceptor extends AbstractSoapInterceptor { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.googlecode.flyway.core.util.scanner.classpath; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.net.JarURLConnection; | |
import java.net.URISyntaxException; | |
import java.net.URL; | |
import java.net.URLConnection; | |
import java.util.Enumeration; | |
import java.util.Set; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XPOST 'http://es.javaetmoi.com/musicalbum/album/_search?pretty' -d ' | |
{ | |
"from": 0, | |
"size": 10, | |
"query": { | |
"bool": { | |
"must": [ | |
{ | |
"fuzzy_like_this": { | |
"fields": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XPOST 'http://es.javaetmoi.com/musicalbum/album/_search?pretty' -d ' | |
{ | |
"fields": [ | |
"artist.name", | |
"id", | |
"name", | |
"year.string" | |
], | |
"query": { | |
"query_string": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "744c7a1b-ac79-35c4-bd92-7e2c6a24c8d8", | |
"name": "Achtung Baby", | |
"year": 1991, | |
"tags": [ | |
"rock", | |
"pop rock", | |
"pop", | |
"album rock", | |
"90s" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
release_group.gid AS albumid, | |
release_group.type AS albumPrimaryTypeId, | |
release_group_primary_type.name as albumPrimaryTypeName, | |
release_name.name AS albumName, | |
artist_name.name AS artistName, | |
artist.gid AS artistGid, | |
artist.type as artisTypeId, | |
artist_type.name as artistTypeName, | |
artist.begin_date_year artistBeginDateYear, |
NewerOlder