Skip to content

Instantly share code, notes, and snippets.


Aaron Couch acouch

  • Philadelphia, PA
View GitHub Profile
View build-dkan.make
api = 2
core = 7.x
includes[core] = drupal-org-core.make
; Profile
projects[dkan][type] = profile
projects[dkan][download][type] = git
projects[dkan][download][url] =
projects[dkan][download][branch] = 7.x-1.11-RC2
acouch / president.csv
Last active Aug 10, 2016 — forked from dwillis/president.csv
OpenElections Results Spec Version 2
View president.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 14 columns, instead of 7. in line 8.
md-2012-11-06-general,ocd-division/country:us/state:md,President,,Barack,,Obama,,Barack Obama,DEM,TRUE,,1218709,59.19
md-2012-11-06-general,ocd-division/country:us/state:md,President,,Mitt,,Romney,,Mitt Romney,REP,,,792564,38.49
md-2012-11-06-general,ocd-division/country:us/state:md,President,,Gary,,Johnson,,Gary Johnson,LIB,,,25303,1.23
md-2012-11-06-general,ocd-division/country:us/state:md,President,,Jill,,Stein,,Jill Stein,GRN,,,13817,0.67
md-2012-11-06-general,ocd-division/country:us/state:md,President,,Tiffany,Renee,Briscoe,,Tiffany Renee Briscoe,DEM,,TRUE,13,0
md-2012-11-06-general,ocd-division/country:us/state:md,President,,Dennis,,Knill,,Dennis Knill,DEM,,TRUE,2,0
md-2012-11-06-general,ocd-division/country:us/state:md,President,,Matthew,,Lydick,,Matthew Lydick,REP,,TRUE,17,0
View acouch_nvd3-recline.js
This file has been truncated, but you can view the full file.
// //
// This is a generated file. You can view the original //
// source in your browser if your browser supports source maps. //
// //
// If you are using Chrome, open the Developer Tools and click the gear //
// icon in its lower right corner. In the General Settings panel, turn //
// on 'Enable source maps'. //
// //
acouch / index.html
Last active Aug 29, 2015
Madison Tree Data and Map
View index.html
<!doctype html>
<meta charset="UTF8">
<title>Madison Tree Types</title>
<link rel="stylesheet" href="">
<script src="" charset="utf-8"></script>
<script src=""></script>
<script src=""></script>
<link href="" rel="stylesheet">
acouch / gist:93dee6b51b2da4178aaf
Created Dec 17, 2014
ckan puppet vagrant extra
View gist:93dee6b51b2da4178aaf
curl -L | sh
sudo apt-get install curl
curl -L | sh
sudo curl -L | sh
cd npm/
sudo scripts/
npm install less nodewatch
acouch / index.html
Created Dec 11, 2014
NVD3 Stacked Area Chart using CartoDBs SQL API
View index.html
<!doctype html>
<meta charset="UTF8">
<title>Tornadoes total versus max damage</title>
<meta name = "viewport" content = "initial-scale = 1, user-scalable = no">
<script src=""></script>
<link rel="stylesheet" href="">
<script src="" charset="utf-8"></script>
<script src=""></script>
acouch / drushrc.php
Last active Aug 29, 2015
drush alias lookup
View drushrc.php
function findFiles($base_dir, $asset_dir, $extensions = array()) {
function glob_recursive($base_dir, &$directories = array()) {
foreach(glob($base_dir, GLOB_ONLYDIR | GLOB_NOSORT) as $folder) {
$directories[] = $folder;
glob_recursive("{$folder}/*", $directories);
glob_recursive($base_dir, $directories);
$files = array();
acouch / gist:9784746
Created Mar 26, 2014
Click on a leaflet map icon in behat using a custom assumption
View gist:9784746
// Leaflet icons don't haave ids (at least the ones I'm using). Here we can click them by the z-index which is
// the only unique id.
* Click on map icon as identified by its z-index.
* @Given /^I click map icon number "([^"]*)"$/
public function iClickMapIcon($num) {
$session = $this->getSession();
acouch / pressflow.diff
Last active Dec 23, 2015
Drupal 7.23 vs Pressflow 7
View pressflow.diff
diff --git a/includes/ b/includes/
index d27f8d1..44f3c72 100644
--- a/includes/
+++ b/includes/
@@ -717,6 +717,22 @@ function drupal_settings_initialize() {
$is_https = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on';
+ // Load environmental config, if present.
+ if (isset($_SERVER['PRESSFLOW_SETTINGS'])) {
acouch / ubuntu puppet server passenger install.txt
Created Sep 12, 2012 — forked from andys/ubuntu puppet server passenger install.txt
Steps for installing puppet master in Ubuntu 10.04 with ruby 1.8 and passenger
View ubuntu puppet server passenger install.txt
# Puppet Install steps for Ubuntu 10.04, ruby 1.8, and passenger
apt-get -y install build-essential
apt-get -y install bsubversion apache2 libcurl4-openssl-dev libssl-dev mysql-server
apt-get -y install zlib1g-dev apache2-prefork-dev libapr1-dev libaprutil1-dev
apt-get -y install ruby ruby-dev libxmlrpc-ruby libopenssl-ruby libshadow-ruby1.8 irb rdoc libopenssl-ruby1.8 libruby
tar -xvzf rubygems*z
cd rubygems-1.3.7