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
A problem occurred configuring root project 'demo'. | |
> Could not resolve all files for configuration ':classpath'. | |
> Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.0.0-RC1. | |
Required by: | |
project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.0.0-RC1 | |
> No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.0.0-RC1 was found. The consumer was configured to find a runtime of a library compatible with Java 14, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.5.1' but: | |
- Variant 'apiElements' capability org.springframework.boot:spring-boot-gradle-plugin:3.0.0-RC1 declares a library, packaged as a jar, and its dependencies declared externally: | |
- Incompatible because this component declares an API of a component compatible with Java 17 and the consumer needed a runtime of a component compatible with Java 14 | |
- Othe |
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
name: Mask secrets | |
on: | |
workflow_dispatch: | |
jobs: | |
Mask Secrets: | |
name: Mask secrets at job | |
runs-on: ubuntu-latest | |
steps: |
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
@Test | |
public void findNumber() { | |
int[] CD = new int[]{12,16,24,28,32,36,48,64,68,72,76,84,92,96}; | |
int[] B = new int[]{2,4,6,8}; | |
int[] F = new int[]{2,4,6,8}; | |
int[] FGH = new int[]{216, 248, 264, 296, 416, 432, 472, 496, 624, 632, 648, 672, 816, 824, 832, 864, 872, 896}; | |
int[] valid = new int[]{1,2,3,4,6,7,8,9}; | |
validate(CD, B, F, FGH, valid); |
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
// Just run next command: | |
curl -X GET "https://badge-dx.herokuapp.com/camo/YOUR_USERNAME_AT_GITHUB/YOUR_REPO_NAME_AT_GITHUB" -H "accept: */*" |
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.junit.jupiter.api.Assertions.assertEquals; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.function.BiFunction; | |
import org.junit.jupiter.api.BeforeEach; | |
import org.junit.jupiter.api.Test; | |
import org.junit.platform.commons.util.StringUtils; | |
public class RomanNumberTest { |
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
package testcontainer.sample; | |
import org.junit.jupiter.api.Test; | |
import org.testcontainers.containers.GenericContainer; | |
import org.testcontainers.junit.jupiter.Container; | |
import org.testcontainers.junit.jupiter.Testcontainers; | |
import static org.junit.jupiter.api.Assertions.*; | |
@Testcontainers |
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
plugins { | |
id 'java-library' | |
} | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
api 'org.apache.commons:commons-math3:3.6.1' |
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
@SpringBootApplication | |
public class MpSampleApplication implements CommandLineRunner { | |
public static void main(String[] args) { | |
SpringApplication.run(MpSampleApplication.class, args); | |
} | |
@Override | |
public void run(String... args) throws Exception { | |
MercadoPago.SDK.setAccessToken(System.getenv("MP_ACCESS_TOKEN")); |
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
plugins { | |
id 'org.springframework.boot' version '2.3.0.M4' | |
id 'io.spring.dependency-management' version '1.0.9.RELEASE' | |
id 'java' | |
} | |
group = 'com.mp' | |
version = '0.0.1-SNAPSHOT' | |
sourceCompatibility = '11' |
NewerOlder