Skip to content

Instantly share code, notes, and snippets.

View darh78's full-sized avatar
🎯
Focusing

Daniel H darh78

🎯
Focusing
View GitHub Profile
@piensaenpixel
piensaenpixel / readme.md
Last active January 2, 2017 18:09
Design Webinar Part 1: Airport Traffic

Create a Basemap

First, we will create a simple basemap that we can use to display the airport traffic information on top of

Add the data

  • From your Maps dashboard, click on NEW MAP
  • In the Add datasets dialogue, search for world borders to find the World Borders (High Definition) dataset available in the CartoDB Library
  • Once located, click to highlight, and then click CREATE MAP which will sync the layer to your account from the CartoDB Library and also add it to our map

Style the Background

The default basemap is Positron to change that, let's change the background color of the map

@ianmcook
ianmcook / fl_weather_alerts.R
Last active September 10, 2017 17:04
Map of active weather alerts for Florida
devtools::install_github("ianmcook/weatherAlerts")
devtools::install_github("ianmcook/weatherAlertAreas")
library(weatherAlerts)
library(leaflet)
alerts <- getAlerts("FL") # takes about 30 seconds
severity <- alerts@data$severity
colorMap <- c(Minor = "green",
@bayesball
bayesball / baseball_durations.R
Created December 31, 2019 13:19
R work for why are baseball games so long post
library(tidyverse)
library(CalledStrike)
library(broom)
######################################
# function retro_work()
######################################
# given a Retrosheet play-by-play dataset
# collects the number of PAs and
# number of pitches for all games in