Skip to content

Instantly share code, notes, and snippets.

@klokan
klokan / README.md
Last active October 12, 2020 16:31
NASA Blue Marble

NASA Blue Marble

Prepared for MapTiler: http://www.maptiler.com/ or other GDAL tools

GDAL vrt

Download the high-resolution images from http://visibleearth.nasa.gov/view.php?id=73751

wget http://eoimages.gsfc.nasa.gov/images/imagerecords/73000/73751/world.topo.bathy.200407.3x21600x21600.A1.jpg
wget http://eoimages.gsfc.nasa.gov/images/imagerecords/73000/73751/world.topo.bathy.200407.3x21600x21600.A2.jpg
@dvmlls
dvmlls / calendarHeatmap.R
Last active December 11, 2017 00:18
Calendar heatmap from "most-underused-data-visualization" question: http://stackoverflow.com/a/2078411/908042
library(ggplot2)
library(dplyr)
# http://stackoverflow.com/a/2078411/908042
stock <- "MSFT"
quote <- sprintf("http://ichart.finance.yahoo.com/table.csv?s=%s&g=d&ignore=.csv", stock)
stock.data <- read.csv(quote, as.is=TRUE) %>% tbl_df %>%
mutate(date=as.Date(Date, format='%Y-%m-%d')) %>%