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
# java | |
function setJdk { | |
JAVA_HOME=`/usr/libexec/java_home -v "$1"` ; | |
if [ $? -eq 0 ]; then | |
export JAVA_HOME ; | |
java -version 2>&1 ; | |
fi | |
} | |
export -f setJdk ; | |
setJdk 1.8 1>/dev/null ; |
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
public class Parent { | |
public static final Level1 l1 = new Level1(); | |
public static class Level1 { | |
public final Level2 l2 = new Level2(); | |
} | |
public static class Level2 { | |
public final String helloWorld = "Hello World"; |
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 java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.Comparator; | |
import java.util.List; | |
public class RajR { | |
public static class Person { | |
private final String firstname; | |
private final String surname; |
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
public class Employee { | |
public static class Builder<T extends Employee> { | |
private T entity; | |
public Builder() { | |
this.entity = new Employee(); | |
} |
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
loki:ansible-apt-issue john$ vagrant up ansible-apt-module | |
Bringing machine 'ansible-apt-module' up with 'virtualbox' provider... | |
==> ansible-apt-module: Importing base box 'ubuntu/bionic64'... | |
==> ansible-apt-module: Matching MAC address for NAT networking... | |
==> ansible-apt-module: Checking if box 'ubuntu/bionic64' is up to date... | |
==> ansible-apt-module: Setting the name of the VM: ansible-apt-issue_ansible-apt-module_1529754013294_58923 | |
==> ansible-apt-module: Fixed port collision for 22 => 2222. Now on port 2200. | |
==> ansible-apt-module: Clearing any previously set network interfaces... | |
==> ansible-apt-module: Preparing network interfaces based on configuration... | |
ansible-apt-module: Adapter 1: nat |
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
loki:ansible-apt-issue john$ vagrant up ansible-apt-module | |
Bringing machine 'ansible-apt-module' up with 'virtualbox' provider... | |
==> ansible-apt-module: Importing base box 'ubuntu/artful64'... | |
==> ansible-apt-module: Matching MAC address for NAT networking... | |
==> ansible-apt-module: Checking if box 'ubuntu/artful64' is up to date... | |
==> ansible-apt-module: Setting the name of the VM: ansible-apt-issue_ansible-apt-module_1529753061622_14729 | |
==> ansible-apt-module: Fixed port collision for 22 => 2222. Now on port 2200. | |
==> ansible-apt-module: Clearing any previously set network interfaces... | |
==> ansible-apt-module: Preparing network interfaces based on configuration... | |
ansible-apt-module: Adapter 1: nat |
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
#!/usr/bin/env python | |
def indent(): | |
logic1 = True | |
logic2 = True | |
if logic1 : | |
print("A") | |
if not logic2 : | |
print("B") | |
else : |
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
{ | |
"id": 1234, | |
"name": "a name", | |
"dynamicsection": { | |
"key1": 1, | |
"key2": false, | |
"key3": "a string" | |
} | |
} |
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
abstract class ExampleNoPackagePackagePrivateAbstract {} |
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 tld.example; | |
import org.junit.jupiter.api.function.Executable; | |
import org.junit.Test; | |
import static org.junit.jupiter.api.Assertions.assertAll; | |
import static org.junit.jupiter.api.Assertions.assertEquals; | |
public class Example { | |
@Test | |
public void example() { | |
assertAll("parent", | |
() -> assertEquals("1", "2"), |