Skip to content

Instantly share code, notes, and snippets.

default 18:38:38.152848-0700 R FRONTLOGGING: version 1
default 18:38:38.152878-0700 R Registering, pid=889
default 18:38:38.156038-0700 R CHECKIN: pid=889
default 18:38:38.164302-0700 R CHECKEDIN: pid=889 asn=0x0-0x51051 foreground=1
default 18:38:38.184202-0700 R Registered, pid=889 ASN=0x0,0x51051
default 18:38:38.184346-0700 R Registered, pid=889 cgConnectionID=95237
default 18:38:38.186274-0700 R BringForward: pid=889 asn=0x0-0x51051 bringForward=1 foreground=1 uiElement=0 launchedByLS=1 modifiersCount=1 allDisabled=0
default 18:38:38.186359-0700 R BringFrontModifier: pid=889 asn=0x0-0x51051 Modifier 0 hideAfter=0 hideOthers=0 dontMakeFrontmost=0 mouseDown=0/0 seed=0/0
default 18:38:38.186449-0700 R BringForward: pid=889 asn=0x0-0x51051
default 18:38:38.186490-0700 R SetFrontProcess: asn=0x0-0x51051 options=0
This file has been truncated, but you can view the full file.
default 19:01:58.245018-0700 R FRONTLOGGING: version 1
default 19:01:58.245029-0700 R Registering, pid=4244
default 19:01:58.246141-0700 R CHECKIN: pid=4244
default 19:01:58.249756-0700 R CHECKEDIN: pid=4244 asn=0x0-0x11d31d2 foreground=1
default 19:01:58.258701-0700 R Registered, pid=4244 ASN=0x0,0x11d31d2
default 19:01:58.258816-0700 R Registered, pid=4244 cgConnectionID=df7f
default 19:01:58.259998-0700 R BringForward: pid=4244 asn=0x0-0x11d31d2 bringForward=1 foreground=1 uiElement=0 launchedByLS=1 modifiersCount=1 allDisabled=0
default 19:01:58.260034-0700 R BringFrontModifier: pid=4244 asn=0x0-0x11d31d2 Modifier 0 hideAfter=0 hideOthers=0 dontMakeFrontmost=0 mouseDown=0/0 seed=0/0
default 19:01:58.260880-0700 R Current system appearance, (HLTB: 2), (SLS: 1)
default 19:01:58.263576-0700 R Post-registration system appearance: (HLTB: 2)
library(agricolae)
library(tidyverse)
mtcars2 <-
mtcars %>%
#move rownames to new column called Model
rownames_to_column(var = "Model")
# how does cyl predict displacment
aov_cars <- aov(disp ~ cyl, data = mtcars2)

Keybase proof

I hereby claim:

  • I am bhive01 on github.
  • I am bhive01 (https://keybase.io/bhive01) on keybase.
  • I have a public key whose fingerprint is 8786 42F9 9118 5EAB 328A 14DE 3733 D0FF 46A0 E89F

To claim this, I am signing this object:

data <- dget("example_data.dput")
data_summary <-
function(df, V1, V2, V3, V4, value) {
V1_var <- enquo(V1)
V2_var <- enquo(V2)
V3_var <- enquo(V3)
V4_var <- enquo(V4)
layer_1 <- enquos(V1, V2, V3, V4)
layer_2 <- enquos(V1, V2, V4)
library(tidyverse)
not_the_fucking_same <- function(x, y, keepNAs = "all") {
if (keepNAs == "all") {
x != y | is.na(x) | is.na(y)
} else if (keepNAs == "x") {
x != y | is.na(x)
} else if (keepNAs == "y") {
x != y | is.na(y)
@bhive01
bhive01 / see3cam_test.py
Last active December 17, 2018 16:30
reading images from a see3cam CU40
import math
import numpy as np
import cv2
cam = cv2.VideoCapture(0)
cam.set(cv2.CAP_PROP_FRAME_WIDTH, 1280)
cam.set(cv2.CAP_PROP_FRAME_HEIGHT, 720)
cam.set(cv2.CAP_PROP_CONVERT_RGB, False) # turn off RGB conversion
# cam.set(cv2.CAP_PROP_FOURCC('Y', '1', '6', ''))
@bhive01
bhive01 / play3.py
Last active November 6, 2018 22:21
# Brandon Hurr
# Assumptions
# 1. Color card is Xrite Passport
# 2. Card is not mirrored
# 3. Only color calibration half of card is visible
# 4. When remove edges is selected at command line, the card is not at the edge of the image.
# 3. The scale factor is based upon median width of found objects (contours) that should be xrite squares, but could not be
# could be problematic with lots of squares objects in image other than color card
import argparse
# TESTING HARDWARE
# see3CAM_CU40
# raspberry Pi 3 bf8
# Raspbian Stretch 13-03-2018
# Python 3.5.3
# OpenCV 3.4.1
# load required libraries
import math
import numpy as np
---
title: "Untitled"
author: "Brandon Hurr"
date: "4/18/2018"
output:
beamer_presentation:
latex_engine: xelatex
---
```{r setup, include=FALSE}