Skip to content

Instantly share code, notes, and snippets.

View starsinmypockets's full-sized avatar

Paul Walker starsinmypockets

View GitHub Profile
// 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 {
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
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
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';
var config = {
widgets: [
{
"elementId": "testWidget",
"view": {
"title": "Economy",
"legend": "Recent unemployment rate",
"resources": [
{
"datasetId": "unemployment",
@starsinmypockets
starsinmypockets / soa-demo.txt
Created July 11, 2019 01:12
SOA DEMO Cover text
SPINE:
SIGNS OF AGING - DEMO
FLAP:
Side A
------
tin gods
long night
new start
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 => {
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)
})
@starsinmypockets
starsinmypockets / bikecrash.txt
Created July 2, 2019 14:26
Self induced bike accident
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
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)
}