Skip to content

Instantly share code, notes, and snippets.

View ayakimchuk322's full-sized avatar
🚀

Anatoly ayakimchuk322

🚀
  • Kyiv, Ukraine
View GitHub Profile
@ayakimchuk322
ayakimchuk322 / gist:f53db74b671d02dc724cef9be561893b
Created October 5, 2021 11:19
IntelliJ IDEA JPA Entity File Template
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
#parse("File Header.java")
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.Column;
@ayakimchuk322
ayakimchuk322 / JaCoCo multi-module aggregate task
Last active April 16, 2020 00:09
Add this to the root build.gradle
// JACOCO AGGREGATE TASK
task jacocoRootReport(type: JacocoReport) {
subprojects.each {
sourceSets it.sourceSets.main
}
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: [
'/com/package/subpackage/**'
import java.math.BigInteger;
import java.util.*;
public class Pentanacci2 {
public static long countOddPentaFib(long n) {
// your code
BigInteger temp = new BigInteger("0");
long count = 0;
@ayakimchuk322
ayakimchuk322 / Train Your Brain
Created July 9, 2015 20:25
just a tiny program from a newcomer to java to test a bit your brain power in basic mathematics operations
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package trainyourbrain;
import java.util.*;
/**