DockerFile should have JProfiler installation.
RUN wget <JProfiler file location> -P /tmp/ && \
tar -xzf /tmp/<JProfiler file> -C /usr/local && \
rm /tmp/<JProfiler file>
Run the following command to create ~/.ssh
folder if it doesn't already exist and set the right access permission.
{ { { mkdir ~/.ssh && echo "No ~/.ssh found so just created" } || { echo "~/.ssh already exists"; false } } ; chmod 700 ~/.ssh }
Once done, please check if you have the folder with the right access permission.
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.Arrays; | |
import java.util.Scanner; | |
import java.util.stream.Stream; | |
import static java.util.stream.Collectors.joining; | |
/** |
fib 0 = 0 | |
fib 1 = 1 | |
fib 2 = 1 | |
fib n = fib (n - 1) + fib (n - 2) | |
-- Get the 100th number | |
fib 100 | |
-- But it takes too long. | |
-- You can do it with zipWith like the following line and it works much faster | |
fibs = 0 : 1 : 1 : zipWith (+) (drop 1 fibs) (drop 2 fibs) |
/* | |
* Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* | |
* - Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* |
/** | |
* @author Kevin Lee | |
* @since 2016-04-09 | |
*/ | |
object StringInterpolation extends App { | |
implicit class EscapeNewLineAndDoubleQuote(val sc: StringContext) extends AnyVal { | |
def esc(args: Any*): String = { | |
val strings = sc.parts.iterator | |
val expression = args.iterator |