Before Github supported SSL encryption for github pages sites, many people were using CloudFlare (CF) as their DNS provider and CDN proxy. CF allowed users to enable SSL encryption from the CDN end points/proxies to the end user. This was great and it allowed visitors to your website to connect with a secure connection between their browser and the cloudflare CDN box that was serving your content. However, with this setup one (significant) link in the chain remained unencrypted and
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Go to Google Bookmarks: https://www.google.com/bookmarks/ | |
On the bottom left, click "Export bookmarks": https://www.google.com/bookmarks/bookmarks.html?hl=en | |
After downloading the html file, run this script on it to generate a KML. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See https://goo.gl/KHQnlk for a video walkthrough. | |
# Load and/or install missing packages | |
p <- c("data.table") | |
install_package <- function(pack) | |
{if(!(pack %in% row.names(installed.packages()))) | |
{ | |
update.packages(ask=F) | |
install.packages(pack,dependencies=T) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# spatial data loading time benchmark | |
# Warning : you may need to manually install rgdal from source, if it fails to install automatically | |
# first install missing packages | |
# thanks to Pratik Patil for the package installation code ( http://stackoverflow.com/a/29622385 ) | |
# Specify the list of required packages to be installed and load | |
Required_Packages = c("data.table", "rgdal", "sp", "ggplot2", "reshape2") | |
Install_And_Load <- function(Required_Packages) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this code showcases creation and plotting of great circle lines | |
# first install missing packages | |
# thanks to Pratik Patil for the package installation code ( http://stackoverflow.com/a/29622385 ) | |
# Specify the list of required packages to be installed and load | |
Required_Packages = c("leaflet", "sp", "geosphere", "scales") | |
Install_And_Load <- function(Required_Packages) { | |
Remaining_Packages <- Required_Packages[!(Required_Packages %in% installed.packages()[,"Package"])] | |