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
# Edit your fish prompt with `funced fish_prompt` and | |
# add the following to a desired place in the function. | |
# Save the prompt after editing with `funcsave fish_prompt`. | |
# Set a variable for workspace color. | |
set -l tfworkspace_color (set_color green) | |
# Append the workspace name at the current prompt position if | |
# the directory contains a .terraform subdirectory | |
if test -d .terraform |
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
$ mvn clean package docker:build |
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 flows | |
import akka.actor.ActorRef | |
import akka.pattern.ask | |
import akka.stream.ActorMaterializer | |
import akka.stream.scaladsl.RunnableGraph | |
import akka.stream.stage._ | |
import akka.util.Timeout | |
import flows.DetourStage.AwaitCompletion |
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.io.Source | |
object OutRunScala { | |
def solve(source: Source): Int = { | |
source | |
.getLines() | |
.drop(1) | |
.map(_.trim) | |
.filterNot(_.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
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.regex.Pattern; | |
import java.util.stream.Collectors; |