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.Assert; | |
import org.junit.Test; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
public class WordCounterTest { |
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
fun open_pull_requests(candidate: Candidate, pairingPartner: List<PairingPartner>) { | |
val branches = get_branches_for(candidate) | |
val prs = branches.pull_requests_for(pairingPartner) | |
prs.forEach { githubPullRequestsRepo.open_pull_request(it) } | |
} |
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
in master: mvn release:branch -B -DbranchName=release/1.0.x -DreleaseVersion=1.0.0 -DdevelopmentVersion=1.1.0-SNAPSHOT | |
in release-branch: mvn release:prepare -B -Dtag=github-pr-factory-1.0.0 -DreleaseVersion=1.0.0 | |
in master: mvn release:perform |
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 stringcalculator; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.function.Consumer; | |
import java.util.function.Function; | |
public class StringCalculator { |
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 scala.collection.mutable.MutableList | |
class A { | |
val onResult: MutableList[Function1[Int, Unit]] = MutableList.empty | |
def process(x: Int) = { | |
onResult.foreach(f => f(x)) | |
} | |
} |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace domain | |
{ | |
public class Diamond_Builder | |
{ | |
private const string NEW_LINE = " | |
"; |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Effects</title> | |
<style> | |
body { | |
width: 600px; | |
margin: auto; |
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
<html> | |
<head> | |
<title>Schoki</title> | |
<link rel="stylesheet" href="styles.css"> | |
</head> | |
<body> | |
<a class="menu" href="#">Home</a> | |
<a class="menu" href="#">Services</a> | |
<a class="menu" href="#">About</a> |
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
<html> | |
<head> | |
<title>Schoki</title> | |
</head> | |
<body> | |
<a class="menu" href="#">Home</a> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.js"></script> |
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
class WrapperV2 | |
{ | |
public static string Wrap(string text, int zeilenlänge) | |
{ | |
return Wrap("", text, zeilenlänge); | |
} | |
static string Wrap(string umgebrochen, string text, int zeilenlänge) | |
{ | |
if (text == "") return umgebrochen; |