Skip to content

Instantly share code, notes, and snippets.

const fs = require('fs')
const path = require('path')
module.exports = {
get data () {
return fs.readdirSync(...).map(...).filter(...).map(...)
}
}
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
abbrev@1, abbrev@1.0.x:
version "1.0.9"
resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.0.9.tgz#91b4792588a7738c25f35dd6f63752a2f8776135"
accepts@~1.3.3, accepts@1.3.3:
version "1.3.3"
resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.3.tgz#c3ca7434938648c3e0d9c1e328dd68b622c284ca"
dependencies:
defmodule App.SignUpMutationTest do
use App.MutationCase, async: true
defp mutation({query, input}) do
body = Poison.encode!(%{
query: query,
variables: %{input: input}
})
build_conn()
/**
* Process uploaded images
*/
import Rx from 'rx'
import mime from 'mime'
import pump from 'pump'
import sharp from 'sharp'
import debug from 'debug'
const log = debug('worker:processImages')
import { applyMiddleware } from 'redux'
/**
* Default browser search class implementation
* This is in order to allow being replaced for testing and server-side rendering
* Since you need to communicate with web workers, this is best modeled as an observable
* I don't think onComplete makes sense for something like search, so it can probably be ignored
* Anyway, I really suggest requiring it implement the observable interface:
* { subscribe(onNext, onError, onComplete) => { dispose() } }
* Dunno about the rest of the API
/**
* AppLayout
* @flow
*/
import { Layout, LayoutContent, LayoutHeader, LayoutTitle } from '../Layout'
import shouldPureComponentUpdate from 'react-pure-render/function'
import React, { Component, PropTypes } from 'react'
export class AppLayout extends Component {
constructor (props) {
'use strict';
var assert = require('assert'),
path = require('path'),
glob = require('glob');
// If it's not a CI environment return the glob
// If it's a CI environment return the globs for the container
// Given a root path, get the full sorted list of specs using the glob
module.exports = function specList (rootPath, specGlob) {
import { Router } from 'react-router'
import { Observable } from 'rx'
/**
* @param routes$ Route state observable
* @returns $navigateToAction
*/
export function navigateTo (routes$) {
return routes$
.flatMap(routes => {
import app from '../app'
import React from 'react'
import debug from 'debug'
import Html from '../components/Html'
import serialize from 'serialize-javascript'
import {navigateAction} from 'fluxible-router'
const log = debug('quad-blog:client:renderer')
export default function renderer ({scripts=[], styles=[]}={}) {
return async function rendererMiddleware () {