Skip to content

Instantly share code, notes, and snippets.

View founddrama's full-sized avatar
🗺️
time zone chauvinist

Rob Friesel founddrama

🗺️
time zone chauvinist
View GitHub Profile
@founddrama
founddrama / iframe-resizer.js
Created November 16, 2021 02:12
iframe-resizer.js from Orin c. Nov. 2021
(function() {
/**
* Attached to `iframe.flickr-embed-frame`, observe when the element is resized
* and re-scale the explicitly set height to match the dynamic width based on
* the original aspect ratio.
*
* It's stupid that we have to do this at all... but here we are.
*/
const resizeObserver = new ResizeObserver((entries) => {
entries.forEach((entry) => {
@founddrama
founddrama / keybase.md
Created December 22, 2019 00:15
keybase.md

Keybase proof

I hereby claim:

  • I am founddrama on github.
  • I am founddrama (https://keybase.io/founddrama) on keybase.
  • I have a public key ASB7TVMopwsW-2i4ibG5l0T5q_14Xlt7QXdF5b5T5kxEQwo

To claim this, I am signing this object:

@founddrama
founddrama / srm.html
Created November 29, 2019 18:06
SRM color bands for an Anki cloze flashcard
<table>
<tbody>
<tr>
<td style="width:50%;background:linear-gradient(90deg, rgba(254,226,135,1) 10%, rgba(254,192,72,1) 90%);"></td>
<td style="width:50%">{{c1::Straw}}</td>
</tr>
<tr>
<td style="width:50%;background:linear-gradient(90deg, rgba(254,192,72,1) 10%, rgba(253,179,53,1) 90%);"></td>
<td style="width:50%">{{c2::Yellow}}</td>
</tr>
@founddrama
founddrama / Homebrew-Competition-Analysis.Rmd
Created August 24, 2019 15:40
"Homebrew Competition Analysis" w/r/t/ my own homebrew competition data, in Rstudio and with some tidyverse tools.
---
title: "Homebrew Competition Analysis"
author: "Rob Friesel"
date: "10/28/2018"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library("dplyr")
@founddrama
founddrama / brew-data.Rmd
Created August 24, 2019 15:39
Digging into my own collected brewing data with Rstudio and some tidyverse tools.
---
title: "Crunching Brew Data"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library("dplyr")
library("ggplot2")
library("reshape2")
@founddrama
founddrama / BJCP-style-exploration.Rmd
Created August 24, 2019 15:37
Exploring the BJCP style data by way of R and ggplot
---
title: "BJCP style exploration"
author: "Rob Friesel"
date: "10/20/2017"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library("ggplot2")
@founddrama
founddrama / Spike.Rmd
Created November 5, 2017 16:30
Diagnostic run on new Spike brew kettle; heating 6 gallons on the stovetop -- what happens next will shock you.
---
title: "Spike 10 gal. Kettle Diagnostic Run"
output: html_notebook
---
## Method
1. Fill a **10 gal. Spike kettle** with **6 gallons** of tap water;
apply heat on the stovetop.
2. **Stir** the water before each temperature reading.
@founddrama
founddrama / BJCP-category-13.Rmd
Created October 20, 2017 12:39
Category 13: Brown British Beer
---
title: "Category 13"
author: "Rob Friesel"
date: "10/20/2017"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(ggplot2)

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@founddrama
founddrama / what-forces-layout.md
Created October 28, 2016 15:24 — forked from paulirish/what-forces-layout.md
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Element

Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()