This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is untested, but it removes several uneccessary layers of | |
// functions and callbacks and should do about the same thing as | |
// the original code | |
const path = require(`path`) | |
module.exports = async ({ actions, graphql }) => { | |
const GET_VISUALS = ` | |
query GET_VISUALS { | |
wpgraphql { | |
mediaItems { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 poems 0/99 | |
as someone with bad | |
boundaries I've always | |
been drawn | |
to programming languages | |
where everything is defined | |
even things that are not | |
defined which are defined as | |
undefined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I want to like the Ken Burns "Country Music" documentary, ambitious as it wants to be, but I have a few big problems with it. It completely underplays the importance of every kind of black roots music from the plantation era through Reconstruction, Jim Crow and segregation. It also barely mentions how important exported African music through the era of slavery was to every kind of fingerpicking and especially to the invention of the banjo and the many ways to play rhythm on it. All of the styles of what people superficially call "Country Blues" had a huge influence on country music through almost every era (not to mention the rhythmic influences of Black Gospel Music.) Another missing part of the equation is the music of Spanish-speaking Mestizo people and otherwise the culture of all along the Texas border (and all of what used to be Mexico.) Going back hundreds of years before the Louisiana Purchase the West was full of Black and Brown people, and colonial Mexico had a rich and varied string playing tr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {useEffect} from 'react'; | |
import { connect } from 'react-redux'; | |
import './App.css'; | |
import { QueryBuilder } from 'datastore-query-builder'; | |
import DataView from './components/DataView'; | |
import { ChartBuilder } from 'chart-builder'; | |
import { MapBuilder } from 'map-builder'; | |
import { Tabs, TabLink, TabContent } from 'react-tabs-redux'; | |
import { filterUIAction, fetchDataAction, dataViewBuilderAction, selectTabAction } from './actions/'; | |
import { getResourceForFiltering } from './utils'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config = { | |
widgets: [ | |
{ | |
"elementId": "testWidget", | |
"view": { | |
"title": "Economy", | |
"legend": "Recent unemployment rate", | |
"resources": [ | |
{ | |
"datasetId": "unemployment", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SPINE: | |
SIGNS OF AGING - DEMO | |
FLAP: | |
Side A | |
------ | |
tin gods | |
long night | |
new start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test('Can update config attributes once app is instatiated', async t => { | |
config.set('CKAN_THEME_ROUTES', 'value') | |
t.is(app.get('config').get('CKAN_THEME_ROUTES'), 'value') | |
t.is(config.get('CKAN_THEME_ROUTES'), 'value') | |
}) | |
test('Can set new config attributes once app is instatiated', async t => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test('Theme defined route returns 404 when not enabled in config', async t => { | |
t.plan(2) | |
config.set('CKAN_THEME_ROUTES', '') | |
const res = await request(app) | |
.get('/foo') | |
t.is(config.get('CKAN_THEME_ROUTES'), '') | |
t.is(res.statusCode, 404) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Damn. The vagaries of life as a contractor left with me with the morning off and I figured I'd go for a run in the cemetery -- there's so much peace to be found there. Laced up, grabbed my bike and headed out on 40th st. I was stalling at the intersection of Market, men with Jesus tracts and loosies nervously eyeing the police car parked across the street by the steps to the el, and my wheel went into a manhole-pothole -- a term I invented on my way to the ground. I think that the years spent doing Aikido (certainly an advertising keyword, we'll see what happens) always help, and I somehow ended up more or less flat on my back, the bicycle (a light one, I'll admit it) on top of me chin tucked (though my helmet did smack the pavement, I'll admit that too). As soon as I could tell which way was up I realized that there were still cars racing through the just-turned-red-light, now my primary concern. Of secondary concern, a concerned-themself med student sprinting towards me in scrubs, reaching out to me and yel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const datahub = require('datahub-client') | |
const {Dataset} = require('data.js') | |
async function getDataset() { | |
const datasetUrl = "https://datahub.io/starsinmypockets/montreal-kpis" | |
const dataset = await Dataset.load(datasetUrl) | |
const resources = await datahub.get(dataset) | |
console.log(resources) | |
} |