Instantly share code, notes, and snippets.

🤷‍♂
I should be coding

# Timothy James Dobbinstmthyjames

🤷‍♂
I should be coding
• Sort options
Created Dec 3, 2016
Concentric Circles for same lat,lng
View geoflow.js
 var newLatLng = function(olat, olng, r, degrees){ var lat1 = olat * Math.PI/180.0; var lon1 = olng * Math.PI/180.0; var d = (r/6371)/1000; //radius of the earth in km, accounts for curvature var lon, loc; var tc = degrees * Math.PI/180.0; // convert to radians to use trig functions var lat = Math.asin(Math.sin(lat1)*Math.cos(d)+Math.cos(lat1)*Math.sin(d)*Math.cos(tc)); lat = 180.0 * lat / Math.PI; if (Math.cos(lat1) == 0){ lon = olng;
Last active Dec 4, 2016
Created Aug 27, 2016
Scraping EPA data using randomized time delays and a PhantomJS headless browser
View stealth_scraping.ipynb Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Created Aug 14, 2016
SQL Magic Function for Jupyter Notebook
View SQLCell.ipynb Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Created Jul 21, 2016 Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Last active Jan 23, 2017
NBA K Nearest Neighbors
View KNNNBA.ipynb Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Last active Jul 20, 2016
Treemap of Patient Leakage

This is a treemap representing patient leakage, inspired by Mike's block

View in full screen to see legend.

Last active Jul 20, 2016
Leaflet rendering and calculation of perfect geographical circles in python jupyter kernel
View geojson.js
 var radiusFromLatLon = function(latIn, lonIn, radius){ var locs = []; var lat1 = parseFloat(latIn) * Math.PI/180.0; var lon1 = parseFloat(lonIn) * Math.PI/180.0; var d = radius/3956.0; var range360 = Array.apply(null, Array(360)).map(function (_, i) {return i;}); for (var i in range360){ var lon, loc; var tc = (range360[i] / 90.0) * Math.PI/2.0; var lat = Math.asin(Math.sin(lat1)*Math.cos(d)+Math.cos(lat1)*Math.sin(d)*Math.cos(tc));
Last active Jul 20, 2016
Spatial Sankey for Shared Patients Between Doctors and Hospitals 