Skip to content

Instantly share code, notes, and snippets.

View ucirello's full-sized avatar

U Cirello ucirello

  • Bay Area
View GitHub Profile
@ucirello
ucirello / needyerror.go
Created November 11, 2023 19:46
needyerror by bradfitz
package needyerror // by Brad Fitzpatrick https://play.golang.org/p/JBQ3zeVMti
import (
"log"
"runtime"
"sync/atomic"
"time"
)
// NeedyError is an error which if unchecked will log an error at the
@ucirello
ucirello / depthlogger.go
Created November 11, 2023 19:45
depthlogger by bradfitz
package main // by Brad Fitzpatrick https://play.golang.org/p/PM0Fx-o6Drz
import (
"fmt"
"log"
"os"
"runtime"
"strings"
)
@ucirello
ucirello / engineers.txt
Created July 21, 2018 18:01
Understanding Engineers
Comprehending Engineers - Take One: Two engineering students were walking
across campus when one said, "Where did you get such a great bike?" The
second engineer replied, "Well, I was walking along yesterday minding my own
business when a beautiful woman rode up on this bike. She threw the bike to
the ground, took off all her clothes and said, "Take what you want." "The
second engineer nodded approvingly, "Good choice; the clothes probably
wouldn't have fit."
Comprehending Engineers - Take Two: To the optimist, the glass is half full.
To a pessimist, the glass is half empty. To the engineer, the glass is twice