From 3ec6314ccaa11b35c986aee83d88ead49be3426d Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Sun, 30 Sep 2018 16:09:28 -0600 Subject: [PATCH] k --- main.go | 34 ++++++++++++++++++++++ {css => public/css}/custom.css | 1 + {css => public/css}/normalize.css | 0 {css => public/css}/skeleton.css | 0 index.html => public/index.html | 14 ++++----- linkedinpic.png => public/linkedinpic.png | Bin 6 files changed, 42 insertions(+), 7 deletions(-) create mode 100644 main.go rename {css => public/css}/custom.css (99%) rename {css => public/css}/normalize.css (100%) rename {css => public/css}/skeleton.css (100%) rename index.html => public/index.html (93%) rename linkedinpic.png => public/linkedinpic.png (100%) diff --git a/main.go b/main.go new file mode 100644 index 0000000..1dffd78 --- /dev/null +++ b/main.go @@ -0,0 +1,34 @@ +/* +Serve is a very simple static file server in go +Usage: + -p="8100": port to serve on + -d=".": the directory of static files to host +Navigating to http://localhost:8100 will display the index.html or directory +listing file. +*/ +package main + +import ( + "flag" + "log" + "net/http" + "os" + "path" + "path/filepath" +) + +func main() { + exePath, err := filepath.Abs(filepath.Dir(os.Args[0])) + if err != nil { + panic(err) + } + + port := flag.String("p", "8100", "port to serve on") + directory := flag.String("d", path.Join(exePath, "public"), "the directory of static file to host") + flag.Parse() + + http.Handle("/", http.FileServer(http.Dir(*directory))) + + log.Printf("Serving %s on HTTP port: %s\n", *directory, *port) + log.Fatal(http.ListenAndServe(":"+*port, nil)) +} diff --git a/css/custom.css b/public/css/custom.css similarity index 99% rename from css/custom.css rename to public/css/custom.css index 29dc879..0ea1061 100644 --- a/css/custom.css +++ b/public/css/custom.css @@ -112,6 +112,7 @@ th, td { } .skill-container { + min-width: 50px; display: inline-block; background-color: #555; width: 100%; diff --git a/css/normalize.css b/public/css/normalize.css similarity index 100% rename from css/normalize.css rename to public/css/normalize.css diff --git a/css/skeleton.css b/public/css/skeleton.css similarity index 100% rename from css/skeleton.css rename to public/css/skeleton.css diff --git a/index.html b/public/index.html similarity index 93% rename from index.html rename to public/index.html index c858e7d..1635ec1 100644 --- a/index.html +++ b/public/index.html @@ -58,7 +58,7 @@
Feb 2018 - Present
Qualtrics
@@ -136,36 +136,36 @@
-
Go
+
Go
1 yr
-
Python
+
Python
2 yrs
-
C
+
C
3 yrs
-
C++
+
C++
3 yrs
-
Others
-
Java, HTML5, CSS3, Rundeck, Jenkins, Couchbase, MongoDB, OpenGL, Javascript, PThreads, MPI, OpenMP, StatsD, Grafana, Sumologic
+
Others
+
Java, HTML5, CSS3, Rundeck, Jenkins, Couchbase, MongoDB, OpenGL, Javascript, PThreads, MPI, OpenMP, AWS, GCP
diff --git a/linkedinpic.png b/public/linkedinpic.png similarity index 100% rename from linkedinpic.png rename to public/linkedinpic.png