Skip to content

Instantly share code, notes, and snippets.

View jamesbursa's full-sized avatar

James Bursa jamesbursa

View GitHub Profile
@jamesbursa
jamesbursa / example.sh
Created September 16, 2021 17:54
Bash functions and scripts
#!/usr/bin/env bash
#
# Example script structure.
#
set -o errexit -o pipefail
source "$(dirname "$0")/util"
main() {
...
@allenluce-zz
allenluce-zz / gist:5044307
Created February 27, 2013 02:05
Google's code review diff sizes to description mapping.
if diff_size == 0:
desc = "a code review of unknown size"
elif diff_size < 2:
desc = "a wee code review"
elif diff_size < 5:
desc = "a tiny code review"
elif diff_size < 30:
desc = "a small code review"
elif diff_size < 100:
desc = "a medium-size code review"