Skip to content

Instantly share code, notes, and snippets.

View yeikel's full-sized avatar
👋

Yeikel yeikel

👋
  • US
  • 11:59 (UTC -04:00)
View GitHub Profile
@yeikel
yeikel / ReadJson.java
Last active April 25, 2022 16:35
Read JSON file to an Object
public static <T> T readJSON(final String path, Type typeOfT) {
try (final BufferedReader br = Files.newBufferedReader(Paths.get(path))) {
return new Gson().fromJson(br, typeOfT);
} catch (final IOException e) {
throw new RuntimeException("Error reading configuration file", e);
}
}
@yeikel
yeikel / latest_status_pr.graphql
Created March 5, 2022 04:34
Find status of latest commit Github API Grapqhql
query MyQuery {
repository(name: "spark", owner: "apache") {
pullRequest(number: 35738) {
commits(last: 1) {
nodes {
commit {
statusCheckRollup {
state
contexts(last: 10) {
edges {
@yeikel
yeikel / guide.md
Last active April 26, 2022 19:27
Add Log4j2 to Maven Project
@yeikel
yeikel / LICENSE
Created November 17, 2018 07:18 — forked from divideby0/LICENSE
First Name Synonyms for Solr
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,