Our incident.io pkg/errors, as explained in:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
) | |
var ( | |
ones = []string{ | |
"zero", "one", "two", "three", "four", | |
"five", "six", "seven", "eight", "nine", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
### | |
### Shell script to use Google service account and optionally | |
### domain-wide delegation (DwD). | |
### | |
### This script will ultimately output an access token that can be used to | |
### call Google APIs as the service account or the Workspace user in DwD. | |
### | |
### Example to show a Workspace user's IMAP settings: | |
### |
After reading Rouan Wilsenach’s article on Ship / Show / Ask, I realized that when creating a pull request, I’m thinking about:
- How can I confidently get my code out of the door?
- Will my changes pass the automated CI checks?
- Will my changes pass a self-review? I.e. would I approve my own PR?
- Will my colleagues be able to give me good feedback?
2. When you click on the little recylcing symbol next to a question or answer "Show activity on this post", you will get to the timeline:
https://stackoverflow.com/posts/69419917/timeline#history_9281a690-64c3-4302-bb36-1ebb6dfd3ecf
Go to Question revision history:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function rest(dag) { | |
layering = d3.layeringSimplex() | |
decrossing = d3.decrossOpt() | |
coords = d3.coordQuad() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"errors" | |
"fmt" | |
"runtime" | |
) | |
type AppError struct { |