Skip to content

Instantly share code, notes, and snippets.

View nickhepler's full-sized avatar

Nick Hepler nickhepler

View GitHub Profile
@nickhepler
nickhepler / colour_scheme.md
Last active August 29, 2015 14:22
R Colour Schemes
@nickhepler
nickhepler / example_function.R
Created June 10, 2015 02:42
R Example Function from Google's R Style Guide
CalculateSampleCovariance <- function(x, y, verbose = TRUE) {
# Computes the sample covariance between two vectors.
#
# Args:
# x: One of two vectors whose sample covariance is to be calculated.
# y: The other vector. x and y must have the same length, greater than one,
# with no missing values.
# verbose: If TRUE, prints sample covariance; if not, not. Default is TRUE.
#
# Returns:
@nickhepler
nickhepler / file_header.R
Last active August 8, 2016 22:56
R Source File Header GPL License
# <one line to give the program's name and a brief idea of what it does.>
# Copyright (C) <year> <name of author>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@nickhepler
nickhepler / keybase.md
Last active March 18, 2016 02:05
Keybase proof

Keybase proof

I hereby claim:

  • I am nickhepler on github.
  • I am nickhepler (https://keybase.io/nickhepler) on keybase.
  • I have a public key ASBO24DCZMbhQkDgWvN8yirfnHeMHYS31XAjBUunKHEtHQo

To claim this, I am signing this object: