docker ps -q -a | xargs docker rm
-q prints only the container IDs -a prints all containers
http://www.oreilly.com/programming/free/files/microservices-for-java-developers.pdf
http://www.oreilly.com/programming/free/files/microservices-for-java-developers.epub
http://www.oreilly.com/programming/free/files/microservices-for-java-developers.mobi
http://www.oreilly.com/programming/free/files/modern-java-ee-design-patterns.pdf
http://www.oreilly.com/programming/free/files/modern-java-ee-design-patterns.epub
http://www.oreilly.com/programming/free/files/modern-java-ee-design-patterns.mobi
| @-webkit-keyframes fadein { | |
| from { | |
| opacity: 0; | |
| } | |
| to { | |
| opacity: 1; | |
| } | |
| } | |
| #sVim-command { |
| " mappings | |
| map "ctrl+u" scrollPageUp | |
| map "ctrl+d" scrollPageDown | |
| map "backspace" goBack | |
| map ":" toggleReader | |
| " Settings | |
| let blacklists = ["*://duckduckgo.com/*", "*://*.google.*/*", "*://localhost:9000/*", "*://mijn.ing.nl/*", "*://medium.com/*/edit", "*://youtube.com/*", "*://www.youtube.com/*"] |
| import scala.util.Try | |
| case class Triangle( | |
| opposite: Float, | |
| adjacent: Float, | |
| hypotenuse: Float | |
| ) { | |
| require( | |
| opposite + adjacent > hypotenuse && | |
| adjacent + hypotenuse > opposite && |
receivedAt to prefix on s3 - https://play.golang.org/p/yEDEhBFmp73| function snakeToCamel( s ) { | |
| return s.replace(/(\_\w)/g, function(m){return m[1].toUpperCase();}); | |
| } | |
| function camelToSnake( s ) { | |
| return s.replace(/([a-z])([A-Z])/g, '$1_$2').toLowerCase(); | |
| } |
FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.
| (ns day9 | |
| (:require [clojure.string :as str])) | |
| (def input (->> (slurp "input.txt") | |
| (#(str/split % #"\n")) | |
| (map read-string))) | |
| (def PREAMBLE-LENGTH 25) |
| package main | |
| import ( | |
| "fmt" | |
| "strings" | |
| ) | |
| func CompareTwoStrings(stringOne, stringTwo string) float32 { | |
| removeSpaces(&stringOne, &stringTwo) |