Skip to content

seyongo/puzzles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Puzzle 1 - Count rows of a csv file

The csv-sample.csv has 1024 rows and you can verify this by opening it in Excel. If you open the file using a plain text editor such as notepad, you will notice that it has 1028 lines.

Write a script with one of the following languages to count rows in a csv file. Your script must read csv-sample.csv and count csv rows to return a result of 1024.

  • PowerShell
  • Bash
  • Python

You may also choose to write a console program in C# and .NET Core instead of writing a script.

What to submit: All your source code in a single text file (.txt or .md)

Puzzle 2 - Build a Docker Image

Create a (linux) docker image with Web API which returns your name and email address.

Sample docker image can be found at seyongo/whoami

Try the sample.

docker pull seyongo/whoami:latest
docker run -it --rm -p 8080:80 --name sample seyongo/whoami:latest

Browse http://localhost:8080/api/email and see what it returns.

{
    "displayName":"Se Yong Oh",
    "emailAddress":"[email protected]"
}

Create your own docker image which returns your name and email address, then publish it to Dockerhub.

Note: If you’re concerned about privacy, you may choose to return a fake name and email address.

What to submit: Link to your own dockerhub image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published