I hereby claim:
- I am pmbauer on github.
- I am pmbauer (https://keybase.io/pmbauer) on keybase.
- I have a public key ASDmZjgJDzG5JMMYT1S8p0m62lTcUo1PZ0oCbj81ebGzjAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
(def input (->> "1122" | |
(map #(Integer/parseInt (str %))) | |
(into []))) | |
(defn captcha [coll offset] | |
(transduce (comp (filter #(apply = %)) | |
(map first)) | |
+ | |
(mapv vector coll (->> (cycle coll) | |
(drop offset) |
package pmbauer; | |
import javax.tools.JavaCompiler; | |
import javax.tools.ToolProvider; | |
import java.io.File; | |
import java.io.IOException; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import java.net.URL; | |
import java.net.URLClassLoader; |
Come democratize education with Udacity, change lives.
If typing the same thing twice makes you break out in hives ...
If automating manual operations cures those hives ...
If action without measuring nauseates you ...
If monitoring is your Meclozine ...
If you take extreme pride in your work ...
If you feel deeply responsible for your work ...
FROM alpine:3.4 | |
ARG FOO | |
ADD test.sh . | |
RUN ./test.sh |
FROM alpine:3.3 | |
RUN apk add --update curl drill \ | |
&& rm -rf /var/cache/apk/* |
udacity/my-awesome 1.0 7.162 MB | |
udacity/my-awesome big 251.2 MB |
# switches and options: | |
# --rm : remove volume | |
# -v : volume mount build folder | |
# -w : set work area to build folder | |
# /bin/sh : build script | |
docker run --rm \ | |
-v $(pwd):/go/src/github.com/udacity/my-awesome \ | |
-w /go/src/github.com/udacity/my-awesome \ | |
golang:1.5-alpine \ | |
/bin/sh -c 'apk add --update git; go get; go build -o target/my-awesome .' |
FROM alpine:3.3 | |
COPY target/my-awesome /usr/local/bin/my-awesome | |
CMD ["my-awesome"] |
# golang:1.5-alpine includes the go compiler | |
FROM golang:1.5-alpine | |
# Add build tools needed by go get | |
RUN apk add --update git | |
# Add source code | |
COPY . /go/src/github.com/udacity/my-awesome | |
WORKDIR /go/src/github.com/udacity/my-awesome |