Skip to content

Instantly share code, notes, and snippets.

View heygarrett's full-sized avatar

Garrett heygarrett

View GitHub Profile

Keybase proof

I hereby claim:

  • I am garrettoreilly on github.
  • I am garrett_oh (https://keybase.io/garrett_oh) on keybase.
  • I have a public key whose fingerprint is 8B6B C54B 0971 0B28 60D1 4709 532D 9ADF 4303 874E

To claim this, I am signing this object:

-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFTB4DMBEADFhlzTgOzRO1FGudjZStPZcWmhzfP6bNgbseJKxWKoHLvpX4tK
gvKWhaKXkYrnOFbuAUVK7gqXXcKKd6bgoxB6kdgEGDwJqZYBrmJVXnozAIqkAPYJ
0swuPgry6e6lw1dgvd/mmmP9ATpj7oNM5grx9p9OSMuqyg6kJky2VuNR0MC6cly3
wQbAKhapI3sgPn6fqzM+pbH7kFLIYT05+L5SdaTUva4i084Uxo09jbj5gT+NxILy
MFMc3iU0CJaOi7bObWA482RgLXSG49/TIKV0fIPfWHPDbrDD1WdfawJg+8/Wbkqs
5jYHT5IryigKs1btyk0fpfQ0fAQ5FRKr0JF2iOGAgYQqSw/FbBC45cM3lFVXclyo
BOG7HsRWeO5MiNC3KLaG72Ik1ytb4bVmC5fu5PxN5rpMYtPELFQHkto6UxPq8saF
GTuqUuMaijtYcggCy4e0NpmLkbvdqFqxSDGt57LiQcnPmOAj3c/2G2FjAp6QjwcP
@heygarrett
heygarrett / vimrc
Last active September 6, 2019 07:02
Solarized: Night & Day
" Set colorscheme to solarized
colorscheme solarized
" Change the Solarized background to dark or light depending upon the time of
" day (5 refers to 5AM and 17 to 5PM). Change the background only if it is not
" already set to the value we want.
function! SetSolarizedBackground()
if strftime("%H") >= 5 && strftime("%H") < 17
if &background != 'light'
set background=light