Skip to content

Instantly share code, notes, and snippets.

View joeyklee's full-sized avatar

Joey Lee joeyklee

View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
@joeyklee
joeyklee / mysql-setup-mac-with-sequel-pro.md
Last active November 17, 2023 05:27
Setting up mysql on mac with sequel pro and homebrew

Setup instructions

Setting up mysql on mac with sequel pro and homebrew

MacOS high sierra 10.13.6
Homebrew version 1.7.6

Assuming you've installed homebrew...

@joeyklee
joeyklee / getAngleRad.js
Created January 13, 2017 09:33
Get the angle in radians between two points
function getAngleRad(p1, p2){
// returns the angle between 2 points in radians
// p1 = {x: 1, y: 2};
// p2 = {x: 3, y: 4};
return Math.atan2(p2.y - p1.y, p2.x - p1.x);
}
@joeyklee
joeyklee / overpassTurbo2geojson-workflow.md
Created September 28, 2017 14:03
Quickly get data from overpass turbo to geojson

Quickly get stuff from OSM & Convert to Geojson

Overpass turbo:

In the query box, for example:

/*
This has been generated by the overpass-turbo wizard.
The original search was:
@joeyklee
joeyklee / index.html
Created November 28, 2016 16:59
Stamen Raster tiles in Mapboxgl.js - based on https://bl.ocks.org/danswick/a4de5c170c04fdd38bb4
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.11.4/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.11.4/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }

map of redux and react functions - where everything is going and is connected

Redux-Overview-Libs-and-functions

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joeyklee
joeyklee / todo-dummy.json
Last active April 30, 2020 15:45
Dummy todo data
[{
"status": "incomplete",
"task": "get a job",
"_id": 1
},
{
"status": "incomplete",
"task": "find inner peace",
"_id": 2
}
@joeyklee
joeyklee / covid-by-boro-20200427.csv
Last active April 27, 2020 19:22
COVID rate by Borough in NYC via https://www1.nyc.gov/site/doh/covid/covid-19-data.page // As of April 27, 2020
boro_name Rate_per_100k_people Total_Count
Bronx 2405.65 35398
Brooklyn 1523.2 41327
Manhattan 1035.55 19499
Queens 1931.92 48382
Staten Island 2273.91 11424
Citywide null 156100
@joeyklee
joeyklee / nyc_borough_bounds.geojson
Last active April 27, 2020 18:04
Editing in https://mapshaper.org/ - simplified bounds.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.