Skip to content

Instantly share code, notes, and snippets.

View ghankerson's full-sized avatar

Geoff Hankerson ghankerson

  • American Public Media
View GitHub Profile
import React, { useContext } from 'react';
import PropTypes from 'prop-types';
import { Teaser, Pagination, Heading } from 'apm-titan';
import { Image } from 'apm-mimas';
import AudioPlayButton from '../AudioPlayButton/AudioPlayButton';
import { format } from 'date-fns';
import { Body } from 'amat-react';
import { truncateAmat } from '../../utils/utils';
import Icon from '../Icon/Icon';
import MetaTags from '../../MetaTags/MetaTags';
import { gql } from 'apollo-boost';
export function episodesQuery(contextSlug, pageNum) {
return gql`
{
episodesList: collection(contentAreaSlug: "${contextSlug}", slug: "${contextSlug}" ) {
id
title
results(page: ${pageNum}, pageSize: 18) {
nextPage
import React, { useContext } from 'react';
import Episodes from './Episodes';
import { episodesQuery } from './EpisodesQuery';
import { Query } from "react-apollo";
import SiteConfigContext from '../../context/SiteConfigContext';
import { Loading } from 'apm-titan';
import PropTypes from 'prop-types';
const EpisodesWithData = (props) => {
const context = useContext(SiteConfigContext);
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(() => {
$(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.
});
<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
*~
.DS_Store
.svn
.cvs
*.bak
*.swp
Thumbs.db
tmp
# theme specific
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"=
@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
<?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>