Skip to content

Instantly share code, notes, and snippets.

View ghankerson's full-sized avatar

Geoff Hankerson ghankerson

  • American Public Media
View GitHub Profile
@ghankerson
ghankerson / gist:95643aa70e822a0d6393
Created February 13, 2015 19:35
settings.local.php
<?php
// Database.
$databases['default']['default'] = array(
'database' => 'mp',
'username' => 'root',
'password' => '',
'host' => 'localhost',
'driver' => 'mysql',
'port' => 3306,
'prefix' => '',
/* Initialize Google Publisher Tags API - Docs: http://goo.gl/ZqOiy */
var gptadslots = [];
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
(function() {
var gads = document.createElement('script');
gads.async = true;
gads.type = 'text/javascript';
var useSSL = 'https:' == document.location.protocol;
gads.src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js';
{
"type": "object",
"properties": {
"Marketplace": {
"id": "Marketplace",
"type": "object",
"properties": {
"title": {
"type": "string",
"default": "Marketplace"
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"><id>http://mp.geoff/feeds/episodes</id><title>Latest Episodes on Marketplace.org</title><link rel="self" href="http://mp.geoff/feeds/episodes"/><subtitle>Latest Episodes from the Business World on Marketplace.org</subtitle><updated>2015-10-13T10:15:40-05:00</updated><opensearch:totalResults>7813</opensearch:totalResults><opensearch:itemsPerPage>25</opensearch:itemsPerPage><opensearch:startIndex>0</opensearch:startIndex><entry><id>http://mp.geoff/shows/marketplace-morning-report/marketplace-morning-report-wednesday-june-10-2015</id><buid>02a3f433c5d7521e04cd78772df6153c</buid><link href="http://mp.geoff/shows/marketplace-morning-report/marketplace-morning-report-wednesday-june-10-2015"/><title>Marketplace Morning Report for Wednesday, June 10, 2015</title><published>2015-06-10T05:00:51</published><updated>2015-06-09T12:09:13-05:00</updated><aliases/><summary type="html"><![CDATA[]]></summary>
@ghankerson
ghankerson / Gemfile.rb
Created March 25, 2016 19:09
Gemfile Local ref
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.6'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use LESS for stylesheets
gem 'less-rails', '~> 2.7.0'
# Use Uglifier as compressor for JavaScript assets
I, [2016-06-05T10:56:47.971373 #27676] INFO -- : Started POST "/images" for 172.29.10.50 at 2016-06-05 10:56:47 -0500
I, [2016-06-05T10:56:47.973221 #27676] INFO -- : Processing by ImagesController#create as HTML
I, [2016-06-05T10:56:47.973333 #27676] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"034VMgjSEFiYPvb+weVD79ti9pMY8sfvAbRvUnoe5UboaVcfkYjQay+uz+bgBqXnRUyVPpJIXeUAYi5DGwrxYw==", "attach_file"=>[#<ActionDispatch::Http::UploadedFile:0x007f23a6931c20 @tempfile=#<Tempfile:/tmp/RackMultipart20160605-27676-89xou0.JPG>, @original_filename="IMG_0926.JPG", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"attach_file[]\"; filename=\"IMG_0926.JPG\"\r\nContent-Type: image/jpeg\r\n">], "shared_image_metadata"=>{"content_area_id"=>"", "short_caption"=>"Seamus Hankerson", "slug"=>"20160605-seamus-hankerson", "long_caption"=>"Seamus Hankerson", "dateline"=>"", "date_taken"=>"", "credit"=>"Geoff Hankerson", "credit_url"=>"", "tags"=>[""], "source_id"=>"", "redistributable"=
*~
.DS_Store
.svn
.cvs
*.bak
*.swp
Thumbs.db
tmp
# theme specific
<ul><li class="hidden" itemprop="recipeIngredient" data-store-section="">1 (1 1/2-pound) flank steak, trimmed and halved crosswise</li><li class="hidden" itemprop="recipeIngredient" data-store-section=""> salt</li><li class="hidden" itemprop="recipeIngredient" data-store-section="">1 pound broccoli florets, cut into 1-inch pieces and halved through stem&nbsp;</li><li class="hidden" itemprop="recipeIngredient" data-store-section="">1 cup baby arugula&nbsp;</li><li class="hidden" itemprop="recipeIngredient" data-store-section="">2 tablespoons extra-virgin olive oil</li><li class="hidden" itemprop="recipeIngredient" data-store-section="">1 tablespoon lemon juice</li><li class="hidden" itemprop="recipeIngredient" data-store-section="">2 teaspoons honey&nbsp;</li><li class="hidden" itemprop="recipeIngredient" data-store-section="">1/4 teaspoon red pepper flakes</li><li class="hidden" itemprop="recipeIngredient" data-store-section=""> salt and pepper</li><li class="hidden" itemprop="recipeIngredient" data-store-sec
$(function(){
'use strict';
// Note: The socket isn't established until the first callback registration.
const current_client = new NowPlayingClient({
// Note that if you care about IE9, you need to make sure that this
// is the same protocol scheme as your served site.
server: 'http://nowplaying.publicradio.org' // Defaults to nowplaying.publicradio.org. Not needed in production code.
});
const express = require("express");
const next = require("next");
const dev = process.env.NODE_ENV !== "production";
const app = next({ dev });
const handle = app.getRequestHandler();
app
.prepare()
.then(() => {