Install iTerm 2
Download, unzip and drag to your Applications directory.
https://www.iterm2.com/downloads.html
install: | |
git clone https://github.com/giantswarm/clientgofix.git /tmp/clientgofix | |
cd /tmp/clientgofix; make install | |
init: | |
git checkout master | |
git pull | |
git checkout -B k8s-1-18-apply | |
go get k8s.io/client-go@v0.18.5 | |
go get github.com/giantswarm/apiextensions@k8s-1-18-apply |
Download, unzip and drag to your Applications directory.
https://www.iterm2.com/downloads.html
apiVersion: application.giantswarm.io/v1alpha1 | |
kind: App | |
metadata: | |
name: "my-cool-prometheus" | |
labels: | |
app: "prometheus" | |
giantswarm.io/cluster: "6iec4" | |
giantswarm.io/organization: "giantswarm" | |
giantswarm.io/service-type: "managed" |
import copy | |
def sumVal(d): | |
sum = 0 | |
for k in d: | |
sum += k * d[k] | |
return sum | |
package main | |
import "fmt" | |
const ( | |
hashsize = 511 | |
) | |
type Entry struct { | |
key string |
package main | |
import "fmt" | |
type Trie struct { | |
branch map[byte]*Trie | |
leaf bool | |
} | |
func NewTrie() *Trie { |
package main | |
import ( | |
"fmt" | |
"math/rand" | |
) | |
func main() { | |
random_array := make([]int, 1000000) | |
for random_number := range random_array { |
package main | |
import ( | |
"bytes" | |
"encoding/base64" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"net/url" |
package main | |
import ( | |
"io" | |
"os" | |
"strings" | |
) | |
type rot13Reader struct { | |
r io.Reader |