Real-time PM2.5 monitoring results using d3 and leaflet. Work in progress but viewable here
This file contains 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
const bubbleSort = arr => { | |
for (let i=arr.length-1; i>=0; i--){ | |
for(let j=1; j<=i; j++){ | |
if(arr[j-1]>arr[j]){ | |
var temp = arr[j-1]; | |
arr[j-1] = arr[j]; | |
arr[j] = temp; | |
} | |
} | |
} |
This file contains 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
const cocktailSort = arr => { | |
let isSorted = true; | |
while (isSorted){ | |
for (let i=0; i< arr.length-1; i++){ | |
if (arr[i] > arr[i+1]){ | |
let temp = arr[i]; | |
arr[i] = arr[i+1]; | |
arr[i+1] = temp; | |
isSorted = true; |
This file contains 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
// swap helper function | |
const swap = (arr, start, end) => { | |
let temp = arr[start]; | |
arr[start] = arr[end]; | |
arr[end] = temp; | |
} | |
// flip helper function using swap | |
const flip = (arr, k) => { | |
let start = 0; |
This file contains 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
// Challenge One | |
const arr = [{ a: 3 }, { a: 55 }, { a: 9 }, { a: 1 }]; | |
const max = (array, arg) => { | |
return array.reduce((a, b) => { | |
if(typeof arg === 'string') { | |
return a[arg] > b[arg] ? a : b; | |
} | |
else if(typeof arg === 'function') { |
This file contains 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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<html> | |
<head> | |
<title>EPHT Report</title> | |
<meta charset="utf-8" http-equiv="X-UA-Compatible" content="IE=9" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"> | |
<script src="https://use.fontawesome.com/5434c9593b.js"></script> |
This file contains 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
fullname | DISTRICT_CODE | EMPLOYEE_ID | MOTP_POINTS | MOTP_RATING | MOSL_POINTS_STATE | MOSL_RATING_STATE | MOSL_POINTS_LOCAL | MOSL_RATING_LOCAL | OVERALL_POINTS | OVERALL_RATING | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | Jimmie Clayton | 6 | 1413 | 49 | Developing | 15 | Effective | 15 | Effective | 79 | Effective | |
1 | Clyde Turner | 6 | 3391 | 53 | Effective | 15 | Effective | 18 | Highly Effective | 86 | Effective | |
2 | Carol Hubbard | 6 | 4270 | 45 | Effective | 16 | Effective | 20 | Highly Effective | 81 | Effective | |
3 | Dennis Flores | 6 | 1068 | 56 | Highly Effective | 15 | Effective | 15 | Effective | 86 | Effective | |
4 | Stewart Bowers | 6 | 5157 | 50 | Effective | 15 | Effective | 15 | Effective | 80 | Effective | |
5 | Nichole Bush | 6 | 2596 | 50 | Effective | 15 | Effective | 20 | Highly Effective | 85 | Effective | |
6 | Anne Brady | 6 | 5784 | 48 | Developing | 9 | Ineffective | 20 | Highly Effective | 77 | Effective | |
7 | Kristina Riley | 6 | 2152 | 55 | Highly Effective | 16 | Effective | 13 | Developing | 84 | Effective | |
8 | Evan Martin | 6 | 3595 | 48 | Developing | 15 | Effective | 15 | Effective | 78 | Effective |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Comment</title> | |
<meta charset="utf-8" http-equiv="X-UA-Compatible" content="IE=9" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous"> | |
</head> |
This file contains 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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>Rent in the US</title> | |
<style type="text/css"> | |
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,300,600'); | |
body { | |
width: 800px; |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Unsupported</title> | |
<meta charset="utf-8" http-equiv="X-UA-Compatible" content="IE=9" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<!-- bootstrap --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous"> | |
<!-- fontawesome --> |
NewerOlder