docker ps -a|tail -n +2|awk '{print $1}'|xargs docker start
This gives side-by-side diff.
diff -y file_1 file_2
import sun.misc.Signal; | |
import sun.misc.SignalHandler; | |
/** | |
* Demo on making use of SIG_PIPE | |
* | |
*/ | |
public class RespectSigPipe | |
{ | |
static boolean isPipeRecieved = false; |
(defn custom-comp | |
"Custom implementation of clojure 'comp'. | |
Accepts a set of functions and returns a composite of | |
those functions. | |
ex, ((custom-comp f1 f2 f3) some-argument) = (f1(f2(f3(some-argument))))" | |
[& fns] | |
(fn [& params] | |
(loop [fn-list fns |
(defn multiple? | |
"Check if the number-to-check is a multiple of number." | |
[number-to-check number] | |
(= 0 (mod number-to-check number))) | |
(defn sieve-of-eratosthenes | |
"For the number ranging from 2 to the given number 'upto'(inclusive), | |
filters out all the numbers that are not prime and | |
return the prime numbers." | |
[upto] |