This file contains hidden or 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
| object legalTender extends App { | |
| val yenCoins = List(1 | |
| ,5 | |
| ,10 | |
| ,50 | |
| ,100 | |
| ,500) | |
| val yenMax = 20 | |
| def sumCoins(max: Int)(coins: List[Int]): Int = coins.map(_ * max).sum |
This file contains hidden or 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
| docker-attach() | |
| { | |
| pid=$(docker inspect --format '{{.State.Pid}}' $1) | |
| sudo nsenter --target $pid --mount --uts --ipc --net --pid | |
| } |
NewerOlder