Permalink: https://x.djmeph.net/cv
Facebook took down my original post, so I'm putting this in a gist and trying to re-circulate.
-
Infection rates are decreasing in China
-
India is successfully treating COVID-19 and minimizing mortality rates
I hereby claim:
To claim this, I am signing this object:
API:
https://github.com/djmeph/api-development-workshop
Companion App:
Sonic Pi
The bulk of the presentation was extrapolated from Katie Bouman's 1 hour presentation at Caltech titled, Imaging a Black Hole with the Event Horizon Telescope.
MongoDB Example: https://github.com/djmeph/geospatial-indexing-mongodb
Companion App: https://github.com/djmeph/geospatial-indexing-angular
GeoRadius Function: https://gist.github.com/djmeph/30262c4591f46eeaa7c75d8af8c6493d
module.exports = (coord, brng, dist) => { | |
dist = dist / 3958; | |
brng = brng.toRad(); | |
var lat1 = coord[1].toRad(), lon1 = coord[0].toRad(); | |
var lat2 = Math.asin(Math.sin(lat1) * Math.cos(dist) + Math.cos(lat1) * Math.sin(dist) * Math.cos(brng)); | |
var lon2 = lon1 + Math.atan2(Math.sin(brng) * Math.sin(dist) * Math.cos(lat1), Math.cos(dist) - Math.sin(lat1) * Math.sin(lat2)); | |
if (isNaN(lat2) || isNaN(lon2)) return null; | |
return [lon2.toDeg(), lat2.toDeg()]; | |
} |
Ubuntu Server 16.04 LTS 64-bit
General Purpose
- t2.small
instance type. (1 CPU core, 2GB RAM)us-east-1x
, us-east-2x
, us-west-2x
are $0.023/hr for t2.small
function post($url,$data, $username, $password) { | |
$file = file_get_contents($data, true); | |
$process = curl_init(); | |
curl_setopt($process, CURLOPT_URL, $url); | |
curl_setopt($process, CURLOPT_USERPWD, "$username:$password"); | |
curl_setopt($process, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); | |
curl_setopt($process, CURLOPT_HTTPHEADER, $this->headers); | |
curl_setopt($process, CURLOPT_HEADER, 1); | |
curl_setopt($process, CURLOPT_VERBOSE, false); |