Skip to content

Instantly share code, notes, and snippets.

View sivartravis's full-sized avatar

Travis Taylor sivartravis

  • Cambridge, MA
View GitHub Profile
library(magrittr)
library(dplyr)
library(nycflights13)
library(evaluate)
library(ggplot2)
# Define the plot
makeplot <- function(mydata){
date <- as.Date(paste("2013", mydata[1,"month"], mydata[1,"day"], sep="-"))
ggplot(mydata, aes(distance, arr_delay)) +
#look at steps in constructing a horizon plot version
#of http://www.mebanefaber.com/timing-model/
#do horizon of percent above or below 10 month / 200 day moving average
require(lattice)
require(latticeExtra)
require(quantmod)
#since we are focused on the horizon plot, let's just look at one stock
@sivartravis
sivartravis / README.md
Created February 25, 2016 21:15 — forked from timelyportfolio/README.md
d3_exploding_boxplot as R htmlwidget
@sivartravis
sivartravis / us_states_hexgrid.geojson
Created February 25, 2016 22:55 — forked from hrbrmstr/us_states_hexgrid.geojson
hexbin faceted choropleths in R
library(rgdal)
library(rgeos)
library(ggplot2)
library(readr)
library(tidyr)
library(dplyr)
library(grid)
us <- readOGR("us_states_hexgrid.geojson", "OGRGeoJSON")
@sivartravis
sivartravis / margintale_blog_2.R
Created February 25, 2016 23:09 — forked from theHausdorffMetric/margintale_blog_2.R
Time Series Heatmaps in ggplot2
require(quantmod)
require(ggplot2)
require(reshape2)
require(plyr)
require(scales)
# Download some Data, e.g. the CBOE VIX
getSymbols("^VIX",src="yahoo")
# Make a dataframe
@sivartravis
sivartravis / wp-config.php
Created March 8, 2016 19:53 — forked from ifamily/wp-config.php
A universal WordPress wp-config.php which works on local development to staging and production server environments.
<?php
/*
One wp-config for local development to staging to production.
*/
// Define Environments
$environments = array(
@sivartravis
sivartravis / export-to-csv.gs
Created August 18, 2016 02:35 — forked from mderazon/export-to-csv.gs
Google apps script to export to individual csv files all sheets in an open spreadsheet
/*
* script to export data in all sheets in the current spreadsheet as individual csv files
* files will be named according to the name of the sheet
* author: Michael Derazon
*/
function onOpen() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var csvMenuEntries = [{name: "export as csv files", functionName: "saveAsCSV"}];
ss.addMenu("csv", csvMenuEntries);
@sivartravis
sivartravis / index.html
Created January 20, 2017 21:59 — forked from anonymous/index.html
kEsJe
<div class='line-through'>
<h1>Branchy</h1>
</div>
<a href='#'>About</a>
<a href='#'>Contribute</a>
<a href='#'>Archives</a>
<div class='line-through' style='margin-top:10em;'>

Gooey Menu - CSS Only

Gooey Menu animation is done purely with css.

The inspiration comes from Soheil's post on Material Up called "Material In a Liquid State".

A Pen by Matthew Sechrest on CodePen.

License.

Gooey Menu - CSS Only

Gooey Menu animation is done purely with css.

The inspiration comes from Soheil's post on Material Up called "Material In a Liquid State".

A Pen by Matthew Sechrest on CodePen.

License.