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 gca.caps.gb.commun.services; | |
import java.time.LocalDateTime; | |
import java.time.format.DateTimeFormatter; | |
public class DateManager { | |
public static final DateTimeFormatter FORMATTER_LOG = DateTimeFormatter.ofPattern("dd/MM/yyyy - HH:mm"); | |
private static final DateManager instance = new DateManager(); |
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
root = true | |
[*] | |
end_of_line = lf | |
insert_final_newline = true | |
charset = utf-8 | |
[*.xml] | |
indent_size = 2 |
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
LANG=en_US.UTF-8 |
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
image: java:8-jdk | |
stages: | |
- build | |
- test | |
- deploy | |
before_script: | |
# - echo `pwd` # debug | |
# - echo "$CI_BUILD_NAME, $CI_BUILD_REF_NAME $CI_BUILD_STAGE" # debug |
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 io.github.javathought.commons.xml | |
import java.io.StringWriter | |
import javax.xml.bind.JAXBContext | |
import javax.xml.bind.annotation._ | |
import javax.xml.bind.annotation.adapters.{XmlAdapter, XmlJavaTypeAdapter} | |
import io.github.javathought.commons.xml.XmlTypes._ | |
import org.apache.commons.io.IOUtils |
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 gca.caps.rh.sourcing.dates | |
import java.time.format.DateTimeFormatter | |
import java.time.{DayOfWeek, LocalDate} | |
import org.slf4j.LoggerFactory | |
/** | |
* Vérification des jours fériés | |
*/ |
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 StopWatch { | |
private static final double NANOS_IN_A_MINUTE = 1000000000000F; | |
private static final double NANOS_IN_A_SECOND = 1000000000F; | |
private static final double NANOS_IN_A_MILLI = 1000000F; | |
private static final double NANOS_IN_A_MICRO = 1000F; | |
private long startTime = -1L; | |
private long startDate = -1L; | |
private long elapsedTime = -1L; |
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 {"artsist": artist, "rating": array rate.rating for rate in ratings end} | |
from couchmusic2 | |
where type = "track" | |
limit 10; | |
select { "title": t.title, "rating": avg(r.rating)} as moy | |
from couchmusic2 as t | |
unnest t.ratings as r | |
group by t.title |
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
/** | |
* call logs | |
*/ | |
public class LogCaller { | |
private static Logger LOG = LoggerFactory.getLogger(LogCaller.class); | |
public void testLogging() { | |
LOG.info("Hello World"); | |
} |
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
<NotepadPlus> | |
<UserLang name="Gherkin" ext="feature" udlVersion="2.1"> | |
<Settings> | |
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" /> | |
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="yes" Keywords8="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Comments">00# 01 02 03 04</Keywords> | |
<Keywords name="Numbers, prefix1"></Keywords> | |
<Keywords name="Numbers, prefix2"></Keywords> |
NewerOlder