One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Launch", | |
"type": "go", | |
"request": "launch", | |
"mode": "debug", | |
"remotePath": "", | |
"port": 2345, |
package main | |
import ( | |
"fmt" | |
"time" | |
"strings" | |
) | |
func main() { |
// Handle UTC to CST conversion | |
loc, _ := time.LoadLocation("America/Chicago") | |
if err != nil { | |
fmt.Println(err) | |
} | |
dateAdded = dateAdded.In(loc) | |
p.DateAdded = dateAdded.Format("01/02/2006 03:04:05 PM") |
// Handle UTC to CST conversion | |
loc, _ := time.LoadLocation("America/Chicago") | |
if err != nil { | |
fmt.Println(err) | |
} | |
dateAdded = dateAdded.In(loc) | |
p.DateAdded = dateAdded.Format("01/02/2006 03:04:05 PM") |
server { | |
listen 80; | |
server_name www.example.com example.com; | |
# Redirect all traffic to SSL | |
rewrite ^ https://$server_name$request_uri? permanent; | |
} | |
server { | |
listen 443 ssl default_server; |
# | |
# Name: nginx-tls.conf | |
# Auth: Gavin Lloyd <gavinhungry@gmail.com> | |
# Desc: Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating | |
# | |
# Enables HTTP/2, PFS, HSTS and OCSP stapling. Configuration options not related | |
# to SSL/TLS are omitted here. | |
# | |
# Example: https://www.ssllabs.com/ssltest/analyze.html?d=gavinhungry.io | |
# |
<select class="form-control" data-placeholder="Choose a Category" tabindex="1" :selected="sState" v-model="state"> | |
<option value="AL">Alabama</option> | |
<option value="AK">Alaska</option> | |
<option value="AZ">Arizona</option> | |
<option value="AR">Arkansas</option> | |
<option value="CA">California</option> | |
<option value="CT">Connecticut</option> | |
type ( | |
// BuoyCondition contains information for an individual station. | |
BuoyCondition struct { | |
WindSpeed float64 `bson:"wind_speed_milehour"` | |
WindDirection int `bson:"wind_direction_degnorth"` | |
WindGust float64 `bson:"gust_wind_speed_milehour"` | |
} | |
// BuoyLocation contains the buoy's location. | |
BuoyLocation struct { |
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
fmt.Println("Times: ") | |
t := time.Now() |