From Go: Format a time or date
Consider just running dateparse:
go get -u github.com/araddon/dateparse/dateparse
dateparse --timezone="UTC" "2019-11-20T22:32:59.882Z"
dateparse --timezone="America/Detroit" "2017-07-19 03:21:00"
function rest(dag) { | |
layering = d3.layeringSimplex() | |
decrossing = d3.decrossOpt() | |
coords = d3.coordQuad() |
package kms | |
import ( | |
"crypto" | |
"encoding/base64" | |
"io" | |
"sync" | |
"context" | |
"fmt" |
From Go: Format a time or date
Consider just running dateparse:
go get -u github.com/araddon/dateparse/dateparse
dateparse --timezone="UTC" "2019-11-20T22:32:59.882Z"
dateparse --timezone="America/Detroit" "2017-07-19 03:21:00"
package main | |
import ( | |
"bytes" | |
"errors" | |
"fmt" | |
"runtime" | |
) | |
type AppError struct { |
How to get Pull Requests data using Github in the browser, or using the API to allow for automating reporting or building in values into a website.
package main | |
import ( | |
"context" | |
"flag" | |
"log" | |
"net/url" | |
"time" | |
"cloud.google.com/go/compute/metadata" |
package main | |
import ( | |
"log" | |
"flag" | |
"path" | |
"time" | |
"context" | |
"github.com/kr/pretty" |
services: | |
- docker:dind | |
stages: | |
- development | |
- production | |
variables: | |
DOCKER_DRIVER: overlay2 | |
DOCKER_TLS_CERTDIR: '' |
package main | |
import ( | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
"golang.org/x/net/context" |
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C gears@umich.edu -N ''
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C gears@umich.edu -N 'Really do not use this passphrase'