Skip to content

Instantly share code, notes, and snippets.

When changing the category for a question, you will not lose anything. The thread stays the same. All you need to do is click the pencil icon next to the post title, and then use the dropdown to select a different category.

@batpigandme
batpigandme / issue_triage.md
Created February 13, 2018 22:55
HW issue triage workflow

GitHub issue process

Motivation

  • Want to look at each issue the fewest possible number of times. The process should be designed to avoid re-reading issues.

  • The GitHub issues interface makes it hard to work with >25 issues at once. The process should be designed to narrow down to <25 related issues.

@batpigandme
batpigandme / fiona_says_whatup.R
Created December 9, 2017 12:33
Fiona the British cat says "What up?"
# devtools::install_github("sellorm/rsay")
library(rsay)
# devtools::install_github("sckott/cowsay")
cowsay::say(what = "What up?", by = "cat")
speak("What up?", "Fiona")
@batpigandme
batpigandme / nflscrapR_thomaslvincent.Rmd
Created October 8, 2017 12:38
source: NFL Series: Exploring the performance of NFL's best running backs by Thomas Vincent https://tlfvincent.github.io/2017/10/08/nlf-running-back-deep-dive/
---
title: "NFL Series: Exploring the performance of NFL's best running backs"
author: "Thomas Vincent"
output: html_notebook
---
source: <https://tlfvincent.github.io/2017/10/08/nlf-running-back-deep-dive/>
## 1. Prerequisites
@batpigandme
batpigandme / twe_snippet.txt
Created September 30, 2017 12:19
✂️ Snippet for blogdown/hugo shortcode to embed tweets 🐦
snippet twe
```{r, echo = FALSE}
blogdown::shortcode("tweet", "${1:tweetid}")
```
@batpigandme
batpigandme / rstudio_markdown_snippet.md
Last active September 29, 2017 16:20
The pics for using tweet chunk (twe) snipped in RStudio.

@batpigandme
batpigandme / h2_code.html
Created September 9, 2017 14:01
Messing around with Rmd-generated HTML stuffs from ggplot2 issue #2231: https://github.com/tidyverse/ggplot2/issues/2231
<!--GH Issue: https://github.com/tidyverse/ggplot2/issues/2231-->
<!--source http://ggplot2.tidyverse.org/reference/geom_text.html#-code-geom-label-code- -->
<!--Current-->
<h2 class="hasAnchor" id="-code-geom-label-code-">
<a class="anchor" href="#-code-geom-label-code-"></a>
&lt;code&gt;geom_label&lt;/code&gt;
</h2>

Source: http://www.tidyverse.org/articles/2017/08/tidyr-0.7.0/

A data expression is either a bare name or an expression of the form x:y or c(x, y). In a data expression, you can only refer to columns from the data frame.

Everything else is a context expression in which you can only refer to objects that you have defined by assigning with <-.

@batpigandme
batpigandme / edwin_thoen_tidyeval.Rmd
Last active August 27, 2017 12:57
Tidy evaluation, most common actions by Edwin Thoen Source: https://edwinth.github.io/blog/dplyr-recipes/
---
title: "Tidy evaluation, most common actions"
author: "Edwin Thoen"
date: "2017-08-25"
output:
html_document:
keep_md: TRUE
---
```{r setup, include=FALSE}