Reproducing the UK map and uk.json topojson data by Mike Bostock (http://bost.ocks.org/mike/map/). Currently the uk.json file does not contain place information - there must be something wrong with the way I am producing the uk.json here: https://github.com/samuelleach/uk-atlas
# Set up new repo on GitHub | |
curl -u 'samuelleach' https://api.github.com/user/repos -d '{"name":"gitProj"}' | |
# Clone repo in local directory | |
git clone https://github.com/samuelleach/gitProj.git | |
# Add a README.md and .gitignore file in the repo | |
cd gitProj | |
touch README.md .gitignore |
pkg_url <- "http://cran.r-project.org/bin/macosx/mavericks/contrib/3.1/Rserve_1.7-3.tgz" | |
install.packages(pkg_url, repos = NULL) | |
library(Rserve) | |
Rserve(args="--vanilla") |
Thank you for your interest in being a Beta tester for Sonos!
As with any Beta test program, you will be asked to agree to several conditions before you begin testing materials. Don't worry, we're not asking for much! Here's a summary of the main terms you'll be agreeing to:
You acknowledge that you are participating in a Sonos Beta program and the info you learn as a tester is confidential and cannot be shared. You confirm that information you provided in the Sonos Beta recruitment survey is accurate. You confirm that are not a member of the press, nor an employee or representative of any competitor. You agree not to disclose your role or work as a Beta tester to any member of the press, any public news group, or any third party. You agree to reasonably respond in a timely manner to Sonos’ requests for feedback. You license Sonos to freely use the feedback and suggestions you provide.
SCRIPT_STR('classify_polarity(.arg1,algorithm="bayes",verbose=TRUE)[,4]', | |
ATTR([CommentText]) | |
) | |
SCRIPT_STR('classify_emotion(.arg1,algorithm="bayes",verbose=TRUE)[,7]', | |
ATTR([CommentText]) | |
) |
My goal here was the create a routable graph for Chicago.
I used Ubuntu 12.04LTS on an m2.4xlarge just to be sure memory wasn't too much of an issue.
Start a screen
session and start downloading an OSM extract (I used this extract of Illinois). In another screen I did the following:
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get -y install git make cmake build-essential \
By clicking "I Agree", you agree to the following terms and conditions (the "Terms"), which form a binding agreement between you and Mapbox, Inc. ("Mapbox"). IF YOU DO NOT AGREE TO THESE TERMS, YOU MAY NOT USE MAPBOX'S DATASET EDITOR.
Authority. If you are using Mapbox's dataset editor on behalf of a business, that business accepts these terms. You represent that you have the authority to bind that business to these Terms, in which case "you" will mean the business you represent.
Tracing. You may use the Mapbox dataset editor or third-party software to trace Mapbox maps and produce derivative vector datasets (i) for non-commercial purposes and (ii) for OpenStreetMap. You may also use Mapbox's dataset editor to trace Mapbox maps for commercial purposes, but may only trace up to 100 points, lines, or polygons per year. Unless expressly permitted by your Enterprise Order, you may not otherwise trace Mapbox maps or otherwise derive or extract data from Mapbox maps, including satellite imagery, nor may you permi
var tileReduce = require('tile-reduce'); | |
var path = require('path'); | |
tileReduce({ | |
zoom: 14, | |
map: path.join(__dirname, '/process.js'), | |
sources: [ | |
{name: 'ways', mbtiles: 'ways.mbtiles')} | |
] | |
}); |
conda create -n jupyter-r -c r r-irkernel r-essentials r-recommended rpy2 -y |
# Preparation script to create data for a Sankey diagram in Tableau. | |
# Input data is a row based and 'country' and 'sector' are two dimensions of the data. | |
# See https://public.tableau.com/profile/samuelleach#!/vizhome/SankeyTemplate/Dashboard1 | |
import pandas as pd | |
infile = 'all_loans.csv' | |
outfile = 'all_loans_sankey.csv' | |
sankey_columns = ['country', 'sector'] |