ssh -L 8888:localhost:8888 your_server_username@your_server_ip
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
{ | |
"objects": [ | |
{ | |
"myComment" : "Activity used to run the hive script to import CSV data", | |
"output": { | |
"ref": "DataNodeId_cnlSW" | |
}, | |
"input": { | |
"ref": "DataNodeId_1ERqq" | |
}, |
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 org.junit.Test; | |
import java.io.IOException; | |
import java.nio.charset.Charset; | |
import java.nio.charset.StandardCharsets; | |
import java.nio.file.Files; | |
import java.nio.file.OpenOption; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import java.nio.file.attribute.FileAttribute; |
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.io.*; | |
import java.util.*; | |
class BracketMatch { | |
static int bracketMatch(String text) { | |
if (text == null || text.isEmpty()) { | |
throw new IllegalArgumentException("Provide a text"); | |
} | |
if (!text.replaceAll("[()]", "").isEmpty()) { |
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 pramp.string; | |
import java.util.*; | |
public class WordCountEngine { | |
static String[][] count(String document) { | |
Map<String, Integer> map = new HashMap<>(); | |
String[] tokens = document.toLowerCase().replaceAll("[^a-z ]", "").split("\\s+"); |
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 internal.example.awaitility; | |
import org.awaitility.Awaitility; | |
import org.junit.Before; | |
import org.junit.Test; | |
import static io.restassured.RestAssured.get; | |
import static java.util.concurrent.TimeUnit.MILLISECONDS; | |
import static java.util.concurrent.TimeUnit.SECONDS; | |
import static org.assertj.core.api.Assertions.assertThat; |
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
from .test_list import TextsToBeInspect | |
def pytest_assertrepr_compare(op, left, right): | |
def details(*args): | |
details = [] | |
details.append('----') | |
for i in args: | |
details.append('%s: ' % i.context) | |
details.extend([' %s' % i for i in i.texts]) |
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 internal.example.after_x; | |
import org.testng.ITestResult; | |
import org.testng.Reporter; | |
import org.testng.annotations.AfterMethod; | |
import org.testng.annotations.DataProvider; | |
import org.testng.annotations.Test; | |
import java.util.Collections; | |
import java.util.HashMap; |
NewerOlder