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 static org.assertj.core.api.Assertions.assertThat; | |
import java.math.BigInteger; | |
import java.net.InetAddress; | |
import java.net.UnknownHostException; | |
import java.util.Optional; | |
import org.junit.jupiter.params.ParameterizedTest; | |
import org.junit.jupiter.params.provider.CsvSource; |
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
{ | |
"Booking": { | |
"detailedPrice": { | |
"running": 9.94, | |
"parked": 0, | |
"free": 0, | |
"prepaid": 0, | |
"outOfGeoFence": 0, | |
"adjustment": 0, | |
"vat": 2.18 |
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
{ | |
"compilerOptions": { | |
"baseUrl": ".", | |
"outDir": "build/dist", | |
"module": "esnext", | |
"target": "es2017", | |
"lib": ["es7", "dom"], | |
"sourceMap": true, | |
"allowJs": false, | |
"jsx": "react", |
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
install hub : https://github.com/github/hub | |
on mac os x: | |
brew install hub | |
add to ~/.ssh/config : | |
Host github | |
HostName github.com | |
PubKeyAuthentication yes | |
IdentityFile ~/.ssh/id_rsa |
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
https://github.com/Microsoft/TypeScript-React-Starter | |
npm init | |
npm install -g create-react-app | |
create-react-app vto-mirror-demo --scripts-version=react-scripts-ts | |
git init |
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 * as React from "react"; | |
import { Container, Row, Col } from 'reactstrap'; | |
import '../styles/video-react.css' | |
export interface ApplicationProps { url: string; } | |
export class Application extends React.Component<ApplicationProps, {}> { | |
private videoNode: HTMLVideoElement; |
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
<plugin> | |
<groupId>com.google.cloud.tools</groupId> | |
<artifactId>jib-maven-plugin</artifactId> | |
<configuration> | |
<to> | |
<image>gcr.io/xxx-catalogue/xxx-catalog-be:${project.version}</image> | |
<auth> | |
<username>_json_key</username> | |
<password>${env.GCR_JSONKEY}</password> | |
</auth> |
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
<plugin> | |
<groupId>com.google.cloud.tools</groupId> | |
<artifactId>jib-maven-plugin</artifactId> | |
<configuration> | |
<to> | |
<image>xxx/xxx-catalogue-be:${project.version}</image> | |
<auth> | |
<username>${env.DOCKERHUB_USERNAME}</username> | |
<password>${env.DOCKERHUB_PASSWORD}</password> | |
</auth> |
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
> mvn -f vto-catalogue-be/pom.xml meecrowave:bake Fri Jul 27 11:45:33 2018 | |
11:45:36 [INFO] Scanning for projects... | |
11:45:37 [WARNING] | |
11:45:37 [WARNING] Some problems were encountered while building the effective model for com.***.***.vto:vto-catalogue-be:jar:1.0.0-SNAPSHOT | |
11:45:37 [WARNING] 'dependencies.dependency.scope' for com.***.***.vto:vto-bom:pom must be one of [provided, compile, runtime, test, system] but is 'import'. @ com.***.***.vto:vto-catalogue-be:[unknown-version], /Users/dgallisto/jee/eclipse-workspaces/***-workspace/vto-catalogue/vto-catalogue-multi-module/vto-catalogue-be/pom.xml, line 39, column 14 | |
11:45:37 [WARNING] | |
11:45:37 [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. | |
11:45:37 [WARNING] | |
11:45:37 [WARNING] For this reason, future Maven versions might no longer support bu |
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
ConfigurationBuilder builder = new ConfigurationBuilder(); | |
builder.jmxStatistics() | |
.disable(); | |
builder.clustering() | |
.cacheMode(CacheMode.LOCAL); | |
builder.persistence() | |
.passivation(false) | |
.addStore(JdbcStringBasedStoreConfigurationBuilder.class) | |
.dialect(DatabaseType.SQL_SERVER) | |
.fetchPersistentState(false) |
NewerOlder