Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
help() {
if [[ ! -z "$1" ]]
then
echo "Error: $1"
trap 'exit 1' RETURN
fi
cat <<EOF
@meowsbits
meowsbits / gh-clonepullrequests
Created December 2, 2019 14:59
Clone Github Pull Requests.
#!/usr/bin/env bash
help() {
if [[ ! -z "$1" ]]
then
echo "Error: $1"
trap 'exit 1' RETURN
fi
cat <<EOF
@meowsbits
meowsbits / example.go
Created September 24, 2019 13:32
An example program generated with https://github.com/gregdhill/go-openrpc/
// Code generated by go-openrpc. DO NOT EDIT.
package main
import (
"bytes"
"encoding/json"
rpct "github.com/gregdhill/go-openrpc/rpc"
"io/ioutil"
"log"
"net/http"
@meowsbits
meowsbits / lazy_evaluation.go
Created April 29, 2019 14:31 — forked from nickcarenza/lazy_evaluation.go
Golang Lazy Evaluation
package main
import (
"time"
)
type LazyInt chan func() int
// Can't use pointer receiver: invalid operation: l <- (func literal) (send to non-chan type *LazyInt)
func (l LazyInt) Future(i int) {
@meowsbits
meowsbits / aligning-images.md
Created March 13, 2019 10:49 — forked from DavidWells/aligning-images.md
Guide to aligning images in github readme.md files

Aligning images

left alignment

This is the code you need to align images to the left:

@meowsbits
meowsbits / team-development-infrastructure-phase1.md
Last active December 4, 2018 18:21
Development team infrastructure, etc. / Phase 1

Remote version control

  • Github org (/etclabs, /bestwisdom?)
    • Membership at reader/writer (admin+) level for all developers

CI pipelines

  • CircleCI account (possibly Pro) > Handles OSX and Linux tests and builds and integrates seamlessly w/ Github