Skip to content

Instantly share code, notes, and snippets.

View ryan-dirajlal's full-sized avatar

ryan-dirajlal

  • San Francisco
View GitHub Profile
<!DOCTYPE HTML>
<!--
Highlights by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>Joe Lopez Future MD</title>
<meta charset="utf-8" />
date stressor stress_pct
2015 Varroa mites 10
2015 Other pests/parasites 5.4
2015 Disesases 0
2015 Pesticides 2.2
2015 Other 9.1
2015 Unknown 9.4
2015 Varroa mites 26.9
2015 Other pests/parasites 20.5
2015 Disesases 0.1
@ryan-dirajlal
ryan-dirajlal / data.csv
Created November 30, 2021 05:08
Fixing old project
Country Value
biological Sciences 51000
Chemical Engineering 56000
Chemistry 60000
Civil Engineering 50000
Computer Science and Math 49000
Economics 50000
Electrical Engineering 57000
Management & Administration 48000
Mechanical Engineering 52000
@ryan-dirajlal
ryan-dirajlal / index.html
Created November 30, 2021 04:59
A11 fixing my own
<!DOCTYPE html>
<meta charset="utf-8">
<!-- Load d3.js -->
<script src="https://d3js.org/d3.v6.js"></script>
<!-- Create a div where the graph will take place -->
<div id="my_dataviz"></div>
<script>
@ryan-dirajlal
ryan-dirajlal / index.html
Created November 30, 2021 04:58
A11 my own deception
<!DOCTYPE html>
<meta charset="utf-8">
<!-- Load d3.js -->
<script src="https://d3js.org/d3.v6.js"></script>
<!-- Create a div where the graph will take place -->
<div id="my_dataviz"></div>
<script>
@ryan-dirajlal
ryan-dirajlal / data.csv
Created November 30, 2021 04:52
A11 fixed bar chart
Country Value
Democrats 62
Republicans 54
Independents 54
@ryan-dirajlal
ryan-dirajlal / index.html
Created November 21, 2021 21:09
Bar Chart
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>House Seats Lost Correlation</title>
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<style>
body {
font-family: "Arial", sans-serif;
@ryan-dirajlal
ryan-dirajlal / election-data.csv
Created November 21, 2021 21:08
Election Map
votes_dem votes_gop total_votes per_dem per_gop diff per_point_diff state_abbr county_name combined_fips
0 93003.0 130413.0 246588.0 0.37715947248 0.528870018006 37,410 15.17% AK Alaska 2013
1 93003.0 130413.0 246588.0 0.37715947248 0.528870018006 37,410 15.17% AK Alaska 2016
2 93003.0 130413.0 246588.0 0.37715947248 0.528870018006 37,410 15.17% AK Alaska 2020
3 93003.0 130413.0 246588.0 0.37715947248 0.528870018006 37,410 15.17% AK Alaska 2050
4 93003.0 130413.0 246588.0 0.37715947248 0.528870018006 37,410 15.17% AK Alaska 2060
5 93003.0 130413.0 246588.0 0.37715947248 0.528870018006 37,410 15.17% AK Alaska 2068
6 93003.0 130413.0 246588.0 0.37715947248 0.528870018006 37,410 15.17% AK Alaska 2070
7 93003.0 130413.0 246588.0 0.37715947248 0.528870018006 37,410 15.17% AK Alaska 2090
8 93003.0 130413.0 246588.0 0.37715947248 0.528870018006 37,410 15.17% AK Alaska 2100
@ryan-dirajlal
ryan-dirajlal / data.csv
Last active November 22, 2021 18:29
Parallel Coordinates
1992 Senate Election 1992 Presidential Election 1994 Senate Election 1996 Senate Election 1996 Presidential Election Species
57 68 48.4 45 70 Democrats
43 32 52 55 30 republicans
@ryan-dirajlal
ryan-dirajlal / expensive-states.csv
Last active November 15, 2021 23:31
A10 Proportional
costRank State costIndex groceryCost housingCost utilitiesCost transportationCost miscCost
1 Hawaii 192.9000 169.3000 318.6000 172.7000 148.6000 116.8000
3 California 151.7000 121.4000 227.3000 117.7000 138.9000 114.5000
4 New York 139.1000 114.8000 204.4000 108.7000 116.6000 104.8000
5 Oregon 134.2000 110.3000 181.8000 88 136.7000 113.2000
6 Massachusetts 131.6000 113.9000 170.3000 109.7000 116 117.6000
7 Alaska 129.9000 134.2000 133.9000 154.2000 130.8000 150.9000
8 Maryland 129.7000 108.5000 184.5000 107.3000 116.7000 89.2000
9 Connecticut 127.7000 114.2000 144.7000 128.1000 111.8000 113.7000
10 New Jersey 125.1000 109.5000 163.1000 101.6000 111.1000 101.7000