This file contains hidden or 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 util.model; | |
import java.util.List; | |
import javax.ejb.Stateless; | |
import javax.persistence.EntityManager; | |
import javax.persistence.PersistenceContext; | |
import javax.persistence.criteria.CriteriaBuilder; | |
import javax.persistence.criteria.CriteriaQuery; | |
import javax.persistence.criteria.Predicate; |
This file contains hidden or 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
public interface ReferencesRepository | |
extends PagingAndSortingRepository<Reference, Long>, JpaSpecificationExecutor<Reference> { | |
public List<Reference> findByRequestIsNullAndKeyProcessType(EProcessType processType); | |
} |
This file contains hidden or 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
concurrent = 1 | |
check_interval = 0 | |
[[runners]] | |
name = "Sample Runner" | |
url = "http://gitlab:9080" | |
token = "b9f216ac4a40d71994bad41269154a" | |
executor = "docker" | |
[runners.docker] | |
tls_verify = false |
This file contains hidden or 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
swagger: '2.0' | |
info: | |
description: Discover REST APIs available within Liberty | |
version: 1.0.0 | |
title: calc-sum-service | |
x-ibm-name: calc-sum-service | |
host: $(catalog.host) | |
tags: | |
- name: 'calculation-service for adding numbers! :)' | |
- name: about-service |
This file contains hidden or 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
docker ps -a | grep 'Exited' | grep -v 'build-dvc' | awk '{print $1}' | xargs docker rm -v || true | |
docker images | grep "<none>" | awk '{print $3}' | xargs docker rmi || true | |
docker volume ls | grep local | awk '{print $2}' | xargs docker volume rm || true |
This file contains hidden or 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
function test() { | |
if (true) { | |
var a = 3 | |
} | |
console.log("a" + a); // prints "a3" ...yes really... that sucks... | |
} |
This file contains hidden or 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
public class NaNTest { | |
public static void main(String[] args) { | |
double a = 10.0 / 0.0; | |
double b = a * 3; | |
System.out.println(a); | |
System.out.println(b); | |
checkValue(b); | |
} |
This file contains hidden or 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
** | |
* DAOCapabilities for slick entities. | |
* | |
* @author [email protected] | |
* @since 4/14/14 | |
*/ | |
abstract class AbstractDAOCapabilities[ENTITY <: EntityCapabilities[ENTITY], TABLE <: AbstractTable[ENTITY]](cons: Tag => TABLE) | |
extends DAOCapabilities[Option[Long], ENTITY] |
This file contains hidden or 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
/** | |
* Interface for Data Access Objects. The interface encapsulates the access from the underlying persistence method. | |
* | |
* @author [email protected] | |
* @since 4/14/14 | |
*/ | |
trait DAOCapabilities[ID, ENTITY] { | |
/** | |
* @return The display name of the entity (used for logging, generic ui, ...) |
This file contains hidden or 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
/** | |
* Returns a mapper for an enumeration. | |
* | |
* @param enumeration | |
* The Enumeration object. | |
* @tparam ENUM | |
* The type of the enumeration. | |
* @return | |
* The mapper column mapper for the enumeration. | |
*/ |