Skip to content

Instantly share code, notes, and snippets.

Avatar

Tim Berry timhberry

View GitHub Profile
View nfs-examples.yaml
apiVersion: v1
kind: PersistentVolume
metadata:
name: nfs-pv
spec:
capacity:
storage: 2Gi
volumeMode: Filesystem
accessModes:
- ReadWriteMany
View stars3.csv
x1 y1 z1 x2 y2 z2
0 7 62
0 33 43
0 40 91
0 44 49
0 57 36
0 66 32
0 91 90
0 95 48
0 97 86
View test2.csv
x1 y1 z1 x2 y2 z2
0 0 9
0 1 81
0 1 82
0 2 0
0 6 15
0 6 37
0 6 67
0 6 84
0 6 94
View test1.csv
0 0 9
0 1 81
0 1 82
0 2 0
0 6 15
0 6 37
0 6 67
0 6 84
0 6 94
View Dockerfile
FROM golang:1.13 as build
WORKDIR /go/src/app
COPY . .
RUN go build -v -o app .
FROM gcr.io/distroless/base
COPY --from=build /go/src/app/. /
CMD ["/app"]
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>TNG Search</title>
<link rel="stylesheet" href="/assets/style.css">
</head>
View style.css
html {
box-sizing: border-box;
}
*, *::before, *::after {
box-sizing: inherit;
margin: 0;
padding: 0;
}
View main.go
package main
import (
"encoding/json"
"fmt"
"html/template"
"net/http"
"net/url"
"os"
)
View style.css
html {
box-sizing: border-box;
}
*, *::before, *::after {
box-sizing: inherit;
margin: 0;
padding: 0;
}
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>TNG Search</title>
<link rel="stylesheet" href="/assets/style.css">
</head>
You can’t perform that action at this time.