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
package zoo; | |
import zoo.person.Manager; | |
public class ZooApp { | |
public static void main(String[] args) { | |
Manager manager1 = new Manager("Manager 1"); | |
manager1.setName("Orvyl"); | |
manager1.setAge(12); |
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
#! /bin/sh | |
# Logging | |
LOG_PATH=logs | |
LOG_FILE=application.log | |
mkdir -p $LOG_PATH | |
# Location of the pid file. | |
PIDDIR="." | |
PIDFILE="$PIDDIR/app.pid" |
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
FROM golang:1.9-alpine | |
RUN mkdir /app | |
WORKDIR /app | |
RUN mkdir -p /go/src/github.com/your_user_name/your_app # Mimics your Golang workspace. Take note that $GOPATH = /go | |
ADD . /go/src/github.com/your_user_name/your_app # Copies all the source code of the package(your_app) including the vendor/ | |
RUN go build github.com/your_user_name/your_app/cmd/serviced # here's where my main() resides |
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
import com.amazonaws.AmazonWebServiceRequest; | |
import com.amazonaws.ResponseMetadata; | |
import com.amazonaws.regions.Region; | |
import com.amazonaws.services.sqs.AmazonSQS; | |
import com.amazonaws.services.sqs.model.*; | |
import com.google.common.hash.Hashing; | |
import java.nio.charset.Charset; | |
import java.util.ArrayDeque; | |
import java.util.ArrayList; |