Learning General Programming:
Learning Code/Architecture:
| package main | |
| import ( | |
| "bytes" | |
| "encoding/json" | |
| "image/png" | |
| "log" | |
| "net/http" | |
| "strconv" |
| package main | |
| import ( | |
| "log" | |
| "net/http" | |
| ) | |
| const ( | |
| // Username - Global Username for testing | |
| Username = "John" |
| package main | |
| import ( | |
| "errors" | |
| "log" | |
| "net" | |
| "net/rpc" | |
| "strconv" | |
| "sync" | |
| "time" |
| apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2 | |
| kind: Deployment | |
| metadata: | |
| name: ubuntu-deployment | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: ubuntu | |
| replicas: 1 | |
| template: |
| package main | |
| import ( | |
| "flag" | |
| "log" | |
| "math/rand" | |
| "net/http" | |
| "time" | |
| "github.com/gorilla/mux" |
| FROM ruby:1.9.3-p551 | |
| RUN mkdir /myapp | |
| WORKDIR /myapp | |
| COPY Gemfile /myapp/Gemfile | |
| COPY Gemfile.lock /myapp/Gemfile.lock | |
| RUN bundle install |
Learning General Programming:
Learning Code/Architecture: