Skip to content

Instantly share code, notes, and snippets.

View brettkobo's full-sized avatar
🏠
Working from home

Brett Kobold brettkobo

🏠
Working from home
View GitHub Profile
# Personal Photo Histry
library("rPlotter")
library("magrittr")
library("grid")
library("gridSVG")
library("ggplot2")
#retreives list of every .jpeg on my hard-drive
files_list1 <- list.files(path="//Volumes//Seagate Backup Plus Drive/Pictures/", pattern = ".*(jpg|JPG|jpeg|JPEG)", full.names=T, recursive=T)
files_list2 <- list.files(path="//Volumes//Seagate Backup Plus Drive/Picuters /", pattern = ".*(jpg|JPG|jpeg|JPEG)", full.names=T, recursive=T)
<script type="text/javascript">
// pulls the value out of the parameter from a URL
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
@brettkobo
brettkobo / googleDistance.R
Created November 14, 2016 02:19
R Script to analysis traffic patterns over time, specifically in LA.
#googling the distance
library("jsonlite")
library("ggplot2")
library("httr")
library("scales")
#setting theme for ggplot2
mar <- 10
themeBrettrics <- theme(plot.title = element_text(size = 15, face = "bold", margin = margin(10, 0, 10, 0)),
axis.ticks = element_line(color = "black"),
@brettkobo
brettkobo / google-cal-hours.R
Created December 18, 2019 03:00
R script looking at # of hours in meetings.
library(tidyverse)
library(lubridate)
devtools::install_github("andrie/gcalendr")
library(gcalendr)
calendar_auth()
calendar_ids <- calendar_list()
events <- calendar_events("email-address@domain.com", days_in_past = 480)