Skip to content

Instantly share code, notes, and snippets.

View dgkeyes's full-sized avatar

David Keyes dgkeyes

View GitHub Profile
@dgkeyes
dgkeyes / Oregon Latino population by county, 1990-2010
Created August 26, 2015 19:07
Latino population of Oregon by county, 1990-2010
COUNTY,"1990
TOTAL POPULATION","1990
NON-HISPANIC POPULATION ",1990 HISPANIC POPULATION,"2000
TOTAL POPULATION","2000
NON-HISPANIC POPULATION ",2000 HISPANIC POPULATION,"2010
TOTAL POPULATION","2010
NON-HISPANIC POPULATION ",2010 HISPANIC POPULATION
Baker County,15317,15041,276,16741,16349,392,16134,15606,528
Benton County,70811,69076,1735,78153,74508,3645,85579,80112,5467
Clackamas County,278850,271721,7129,338391,321647,16744,375992,346854,29138
@dgkeyes
dgkeyes / index.html
Last active August 28, 2015 20:21
Oregon Latino Population Test
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Loading CSV Data with D3</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
</head>
<body>
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Sorting Elements</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script>
<style type="text/css">
body {
background-color: #ddddff;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Sorting Elements</title>
<script type="text/javascript" src="https://d3js.org/d3.v3.min.js"></script>
<style type="text/css">
body {
background-color: #ddddff;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Oregon's Latino Population by County</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script>
<style type="text/css">
body {
@dgkeyes
dgkeyes / 0_reuse_code.js
Created August 9, 2017 15:04
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@dgkeyes
dgkeyes / Change title on single report pages
Created January 10, 2018 01:20
Change title on single report pages
//* Remove the site title
remove_action( 'genesis_site_title', 'genesis_seo_site_title' );
add_action( 'genesis_site_title', 'ods_report_title' );
function ods_report_title() {
?>
<h1 class="site-title"><a href="#">Outdoor School in Oregon</a></h1>
<?php
}
<h2>Find us on Growing Upwards</h2>
<a href="<?php the_permalink(); ?>" class="popup-wide"><img src="https://growingupwards.com/wp-content/uploads/2018/03/Growing-Upwards-Double-Ring-1000px-1-e1520289076211.png" alt="Growing Upwards Logo" width="300" height="300"/></a>
# Packages ----------------------------------------------------------------
library(tidyverse)
library(scales)
library(ggiraph)
library(htmlwidgets)
@dgkeyes
dgkeyes / setup.R
Last active July 30, 2018 23:12
RMarkdown setup chunk #R
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE,
warning = FALSE,
message = FALSE,
dpi = 600,
fig.align = "center",
fig.width = 6,
fig.height = 4)