Skip to content

Instantly share code, notes, and snippets.

View diy.Rmd
---
title: "Calendar - DIYD3"
output:
html_document:
df_print: paged
# template: heatmap_template.html
---
```{r echo = F, results = 'asis'}
knitr::opts_chunk$set(
View test.txt
zoo
data.table
dplyr
tidyr
View Mojave Dark 2.rstheme
/* rs-theme-name: Mojave Dark 2 */
/* rs-theme-is-dark: TRUE */
/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: D8D5E82E-3D5B-46B5-B38E-8C841C21347D) */
.ace_snippet-marker {
background: rgb(21,126,251);
color: white;
border: none !important;
border-top: 1px solid rgb(110, 111, 130);
border-bottom: 1px solid rgb(110, 111, 130);
View README.md

Data files for adam-garcia.net analyses

@adam-garcia
adam-garcia / .gitignore
Created Apr 17, 2018
Gigignore for R Projects
View .gitignore
# Forked from https://github.com/github/gitignore
# History files
.Rhistory
.Rapp.history
# R Project files
.Rproj.user
# Session Data files
.RData
@adam-garcia
adam-garcia / darksky.R
Last active Apr 13, 2018
DarkSky Time Machine API
View darksky.R
library(tidyverse)
library(glue)
library(httr)
library(jsonlite)
library(lubridate)
library(purrr)
token <- NA
base <- "https://api.darksky.net/forecast/{token}/" %>%
View santa.R
#' santa(guests) is a function that assigns guests to a "secret santa" gift swap
#' @param guests the vector of partygoers
#' @return a tibble, with <guests> assigned in "to" and "from" columns
library(magrittr)
library(tibble)
santa <- function(guests) {
n <- length(guests)
tibble (
@adam-garcia
adam-garcia / README.md
Last active Apr 15, 2021
Viridis Color Palette Generator
View README.md

Viridis Color Palette Generator

A simple tool for extracting discrete color palette values from the viridis collection of color palettes.

@adam-garcia
adam-garcia / extract_numeric.sas
Last active Mar 29, 2017
Helpful SAS Snippets
View extract_numeric.sas
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
** *
** extract_numeric.sas *
** purpose: extract numeric component from string *
** todo: leading strings break pattern *
** *
`* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
data strings;
View hill
HHHHHH >>HHHH
HHHHHH >>>>HH
HHHHHH