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
import java.lang.reflect.ParameterizedType; | |
import java.lang.reflect.Type; | |
import java.net.URL; | |
import java.util.ArrayList; | |
import java.util.List; | |
import javax.inject.Inject; | |
import javax.persistence.EntityManager; | |
import javax.persistence.criteria.CriteriaBuilder; | |
import javax.persistence.criteria.CriteriaQuery; |
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
Show hidden characters
{ | |
"working_dir": "$file_path", | |
"shell_cmd":"mvn clean install", | |
"variants": [ | |
{ | |
"name": "mvn clean install", | |
"shell_cmd": "mvn clean install" | |
}, | |
{ | |
"name": "mvn full build", |
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
<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>fr.mcgivrer.samples</groupId> | |
<artifactId>swt-project</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<name>swt-project</name> | |
<description>Dicovering SWT API/description> | |
<build> |
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 fr.mcgivrer.applications.angulargames.test.dao; | |
import java.util.Map; | |
import java.util.Properties; | |
import javax.persistence.Entity; | |
import javax.persistence.EntityManager; | |
import javax.persistence.EntityManagerFactory; | |
import javax.persistence.Persistence; |
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
#!/bin/bash | |
# Small script to start/stop a | |
# Continuous Integration server based on ubuntu 12.04. | |
# inspired by sonar service script. | |
# (copyleft) 2012 - McGivrer | |
# | |
checkUser() { | |
# $1 touchLock flag | |
# $2 command |
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 fr.mcgivrer.framework.web.persist; | |
import java.io.Serializable; | |
import java.util.List; | |
import java.util.Map; | |
public interface Dao <T, PK extends Serializable> { | |
/** | |
* save an entity. This can be either a INSERT or UPDATE in the database. | |
* |
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
p{ | |
margin:0px; | |
padding:0px; | |
} | |
article.post { | |
font-family: Tahoma, Verdana, Sans Serif; | |
font-size: 10pt; | |
width:90%; | |
margin:0% 5%; | |
} |
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
p{ | |
margin:0px; | |
padding:0px; | |
} | |
article.post { | |
font-family: Tahoma; | |
font-size: 10pt; | |
/*width:90%; | |
margin:0% 5%;*/ | |
} |
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
<?php | |
class ImageThumbs{ | |
private static $_instance; | |
// array of size to be generated, sample : array('320x200','80x120') | |
private $thumbsFormats=array(); | |
private $thumbsFileFormat="png"; | |
public $imgTypes = array( | |
1 => 'GIF', |
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
<?php | |
/** | |
* Abstract Class for Singleton Pattern management. | |
* @author Frédéric Delorme<[email protected]> | |
* @version 1.0 | |
* @copyright 2010/08/15 | |
* | |
*/ | |
abstract class Singleton | |
{ |