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
| { | |
| "name": "My cool API", | |
| "description": "A very cool API", | |
| "licence": "Apache 2.0", | |
| "urls": [{ | |
| "name": "Github repository", | |
| "url": "www.github.com/cool/api", | |
| "type": "repo" | |
| },{ | |
| "name": "Stackoverflow section", |
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
| final List<String> baseList = new ArrayList<>(); | |
| final List<String> unmodifiableList = Collections.unmodifiableList(baseList); | |
| Executors.newSingleThreadExecutor().execute(() -> { | |
| while(true) { | |
| baseList.add(UUID.randomUUID().toString()); | |
| try { | |
| Thread.sleep(10); | |
| } catch (InterruptedException e) { | |
| e.printStackTrace(); |
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 EventTopics { | |
| Topic<Long> CHANGED_ITEM_TOPIC = Topic.create(); | |
| Topic<AddToCartEvent> ADD_TO_CART = Topic.create(); | |
| } |
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
| /* | |
| * Copyright 2012-2015 Canoo Engineering AG. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
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
| ClientContext context = .... | |
| Subscription subscription = context.onSessionTimeout(e -> System.out.println("Session Timeout")); | |
| Subscription subscription = context.onHttpError(e -> System.out.println("Http error: " e.getErrorCode())); | |
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
| .button:hover { | |
| -fx-background-color: darkorange; | |
| } |
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
| .button { | |
| -fx-background-color: orange; | |
| } |
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
| .exploding-button:exploding { | |
| -fx-background-color: red; | |
| } |