We've all seen the projected head from Elements of map projection with applications to map and chart construction, but the authors in 1921 did not have D3 to help them show a full range of weird distorted faces. This is based on the Map Projection Transitions example by Jason Davies.
This file contains hidden or 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
# originally from: http://stackoverflow.com/questions/42528400/plot-brushing-or-accessing-drawn-shape-geometry-for-spatial-subsets-in-shiny-lea | |
# uses https://github.com/bhaskarvk/leaflet.extras | |
library(shiny) | |
library(leaflet) | |
library(leaflet.extras) | |
library(sp) | |
cities <- structure(list(AccentCity = c("Saint Petersburg", "Harare", "Qingdao", | |
"Addis Abeba", "Xian", "Anshan", "Rongcheng", "Kinshasa", "New York", |
This file contains hidden or 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
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited | |
# | |
# Current known FCC address ranges: | |
# https://news.ycombinator.com/item?id=7716915 | |
# | |
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft | |
# | |
# In your nginx.conf: | |
location / { |
This file contains hidden or 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
import itertools | |
from openpyxl.reader.excel import load_workbook | |
def getrows(sheet, cols): | |
headers = [c.value for c in sheet.rows[0] if c.value] | |
for row in sheet.rows[1:]: | |
d = dict(zip(headers, [c.value for c in row])) | |
yield dict((k2, d[k1]) for k1,k2 in cols) | |