Skip to content

Instantly share code, notes, and snippets.

View hendrikebbers's full-sized avatar
:octocat:
Doing Java

Hendrik Ebbers hendrikebbers

:octocat:
Doing Java
View GitHub Profile

Implement a Future Using Managed Blocker in ForkJoinPool to Improve Concurrency

🆕🐥 First Timers Only

This issue is reserved for people who never contributed to Hedera or any open source project in general before. We know that the process of creating a pull request (PR) is a big barrier for new contributors. The goal of this issues and all other issues that are labeled by 'good first issue' is to help you doing your first contribution to Hedera.

👾 Description of the issue

@hendrikebbers
hendrikebbers / first-issue-hedera.md
Last active April 15, 2024 11:33
hedera-good-first-issue

🆕🐥 First Timers Only

This issue is reserved for people who never contributed to Hedera or any open source project in general before. We know that the process of creating a pull request (PR) is a big barrier for new contributors. The goal of this issues and all other issues that are labeled by 'good first issue' is to help you doing your first contribution to Hedera.

👾 Description of the issue

This section descrips the issue that should be solved. We try to define the usecase and goal of the issue as concrete as possible.

# Name of the project
This is a short section that explains in an non-complexe way the main usage of the project. Should be like 3-8 sentences.
table of contents need to be added at this place.
## Getting Started / Installation
Since Github is used mostly by developers it makes sense to start with a section that shows how the content of the repo
@hendrikebbers
hendrikebbers / good-first-issue.md
Last active September 22, 2020 08:44
Template for a good first issue that can be used for AdoptOpenJDK

🆕🐥 First Timers Only

This issue is reserved for people who never contributed to Open Source before. We know that the process of creating a pull request is the biggest barrier for new contributors. This issue is for you 💝

👾 Description of the issue

The following text is a sample of a a description. It is important that such descriptions contains enough information (maybe by links) to allow a newcomer to work on the issue :)

IcedTea-Web should have a Travis build. Information how a Java project can be build by Travis can be found here. IcedTea-Web is based on Maven and a mvn clean verify should be executed by the Travis build. Today we do not have a maven wrapper but that can be added when solving this issue (optional). IcedTea-Web should be build on the last Java 8 release of AdoptOpenJDK. Providing an additional build that is based on Java 11 would be a big benefit

@hendrikebbers
hendrikebbers / first-timers-support.md
Last active September 22, 2020 08:44
first-timers-support

🆕🐥 First Timers Support

We love open source. Based on this we develop everything in the AdoptOpenJDK community as open source projects. If you are new to open source development we have some specific issues for you. Just have a look at all issues with the good first issue label. This issues are reserved for people who never contributed to Open Source before. We know that the process of creating a pull request is the biggest barrier for new contributors. This issues are for you 💝 We use such issues for example to get involved at Hacktoberfest. If you want to know more about open source development and contribution in general you should have a look at this introduction.

@hendrikebbers
hendrikebbers / gist:b81f5c3816f5055b03f8
Created February 12, 2015 22:34
DataFX Event System
@ViewController("producer.fxml")
public class ProducerController {
@ViewNode
@EventTrigger("test-message")
private Button sendButton;
@ViewNode
private TextField textField;
final String content = "client_id=" + appName + "&username=" + user + "&password=" + password + "&grant_type=password"
final byte[] rawContent = content.getBytes(PlatformConstants.CHARSET);
final URI url = new URI(authEndpoint + "/auth/realms/" + realmName + "/protocol/openid-connect/token");
final HttpURLConnection connection = new DefaultHttpURLConnectionFactory().create(url);
connection.setRequestMethod(RequestMethod.POST.getRawName());
connection.setRequestProperty("charset", "UTF-8");
connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
connection.setRequestProperty("Content-Length", rawContent.length + "");
connection.setDoOutput(true);
connection.setDoInput(true);
tree.setCellRenderer(new DefaultTreeCellRenderer() {
@Override
public IRendererComponent getTreeCellRendererComponent(ULCTree tree, Object value, boolean selected, boolean expanded, boolean leaf, boolean hasFocus) {
IRendererComponent renderer = super.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, hasFocus);
if (value != null && value instanceof ApplicationMetadata) {
setText(((ApplicationMetadata) value).getName());
}
return renderer;
}
.exploding-button:exploding {
-fx-background-color: red;
}
public class MyCustomButton extends Button {
private static PseudoClass EXPLODING_PSEUDO_CLASS = PseudoClass.getPseudoClass("exploding");
BooleanProperty exploding;
public MyCustomButton() {
exploding = new SimpleBooleanProperty(false);
exploding.addListener(e -> pseudoClassStateChanged(EXPLODING_PSEUDO_CLASS, exploding.get()));