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
alias.lg=log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
alias.lol=log --graph --decorate --pretty=oneline --abbrev-commit | |
alias.lola=log --graph --decorate --pretty=oneline --abbrev-commit --all |
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
@Getter | |
@Setter | |
@Table(name = User.TABLE_NAME) | |
@Entity | |
@NamedQueries( | |
{ | |
@NamedQuery(name = User.Q_FIND_ALL, query = "SELECT h FROM User h"), | |
@NamedQuery(name = User.Q_FIND_BY_NAME, query = "SELECT h FROM User h WHERE h.name = :name") | |
}) | |
public class User implements Serializable { |
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
public class CertificateLM extends AppservCertificateLoginModule { | |
private static final Logger LOGGER = LoggerFactory.getLogger(CertificateLM.class); | |
@Override | |
protected void authenticateUser() throws LoginException { | |
LOGGER.debug("authenticateUser "); | |
// Get the distinguished name from the X500Principal. |
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
def findPage(page: Int = 0, orderField: Int): Page[Club] = { | |
val offset = pageSize * page | |
database.withSession { | |
val clubs = ( | |
for {c <- Clubs | |
.sortBy(club => orderField match { | |
case 1 => club.code.asc | |
case -1 => club.code.desc |
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 library | |
import fr.janalyse.jmx._ | |
import play.api.libs.json._ | |
import play.api.libs.functional.syntax._ | |
/** | |
* Created with IntelliJ IDEA. | |
* User: gbougeard | |
* Date: 21/11/12 |
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
case class Point(x: Option[Double], y: Long) | |
case class Serie(target: String, datapoints: Seq[Point]) | |
case class GraphiteData(series: Seq[Serie]) | |
object Application extends Controller { | |
implicit val pointReads = Json.reads[Point] |
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
case class Serie(target: String, datapoints: Seq[Seq[Option[Double]]]) | |
(...) | |
val json = response.json | |
json.validate[Seq[Serie]].fold( | |
valid = (res => Ok(views.html.index(json.as[Seq[Serie]], Json.stringify(json)))), | |
invalid = (e => BadRequest(e.toString)) | |
) |
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
// Controller | |
package controllers | |
import play.api.mvc._ | |
object FragmentAssets extends Controller { | |
val FRAGMENTS_PATH_PREFIX = List("public", "fragments") |
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
testing pseudo-IO performances - 1st Pass | |
2048+0 enregistrements lus | |
2048+0 enregistrements écrits | |
2147483648 octets (2,1 GB) copiés, 0,130592 s, 16,4 GB/s | |
testing IO write performances - 1st Pass | |
2048+0 enregistrements lus | |
2048+0 enregistrements écrits | |
2147483648 octets (2,1 GB) copiés, 41,7873 s, 51,4 MB/s | |
testing IO read performances - 1st Pass | |
2048+0 enregistrements lus |
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
Post Fixe (Samsung 830 Séries 128Go) | |
Test 1 | |
testing pseudo-IO performances - 1st Pass | |
2048+0 enregistrements lus | |
2048+0 enregistrements écrits | |
2147483648 octets (2,1 GB) copiés, 0,239357 s, 9,0 GB/s | |
testing IO write performances - 1st Pass | |
2048+0 enregistrements lus |