From 6130dca28110dc1b28e450be9eb72c929a089060 Mon Sep 17 00:00:00 2001 From: Wyatt Miller Date: Sun, 14 Apr 2019 23:14:54 -0400 Subject: [PATCH] i'm too tired to write a blog post rn, will write tommorrow --- ...19-03-15-working-hard-or-hardly-working.markdown | 1 - .../2019-04-13-racing-to-the-finish-line.markdown | 7 +++++++ src/code/pointer.go | 11 +++++++++++ src/code/web.go | 13 +++++++++++++ src/footer.php | 1 + 5 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 src/blog/_posts/2019-04-13-racing-to-the-finish-line.markdown create mode 100644 src/code/pointer.go create mode 100644 src/code/web.go diff --git a/src/blog/_posts/2019-03-15-working-hard-or-hardly-working.markdown b/src/blog/_posts/2019-03-15-working-hard-or-hardly-working.markdown index ccdccc4..182cd59 100644 --- a/src/blog/_posts/2019-03-15-working-hard-or-hardly-working.markdown +++ b/src/blog/_posts/2019-03-15-working-hard-or-hardly-working.markdown @@ -4,7 +4,6 @@ title: "Working hard or hardly working?" published: true --- - Note that if you haven't read a previous blog post where I introduce the team and introduce the project, please go check that out! Continuing our endeavor in making the best temperature solution possible, we here at PiBake are hard at work. Everyone is doing something, whether it’s writing code for the website or fixing hardware, it sure is something that we have brewing up here. diff --git a/src/blog/_posts/2019-04-13-racing-to-the-finish-line.markdown b/src/blog/_posts/2019-04-13-racing-to-the-finish-line.markdown new file mode 100644 index 0000000..fe34ba8 --- /dev/null +++ b/src/blog/_posts/2019-04-13-racing-to-the-finish-line.markdown @@ -0,0 +1,7 @@ +--- +layout: post +title: "Racing to the finish line!" +published: true +--- + +This sprint, it was "heads down and squashing bugs" kind of sprint. We, as a team, have a lot accomplished but we not quite done yet, with our importing to our database still needing to happen and some fishing touches have to be added as well. Let's get into it, shall we? \ No newline at end of file diff --git a/src/code/pointer.go b/src/code/pointer.go new file mode 100644 index 0000000..091de62 --- /dev/null +++ b/src/code/pointer.go @@ -0,0 +1,11 @@ +package main + +import "fmt" + +func main() { + x := 15 + a := &x + + fmt.Println(a) // print mem addr + fmt.Println(*a) // print value of x +} \ No newline at end of file diff --git a/src/code/web.go b/src/code/web.go new file mode 100644 index 0000000..9c7fd11 --- /dev/null +++ b/src/code/web.go @@ -0,0 +1,13 @@ +package main + +import ("fmt" + "net/http") + +func index_handler(w http.ResponseWriter, r *http.Request) { + fmt.Fprintf(w, "Whoa, Go is awesome!") +} + +func main() { + http.HandleFunc("/", index_handler) + http.ListenAndServe(":8000", nil) +} \ No newline at end of file diff --git a/src/footer.php b/src/footer.php index 34075a1..f3fd1b6 100644 --- a/src/footer.php +++ b/src/footer.php @@ -17,6 +17,7 @@

© Miller Web Solutions, Wyatt J. Miller - Licensed by the MIT

+

Hosted by DigitalOcean

\ No newline at end of file