Skip to content

Instantly share code, notes, and snippets.

@phusick
phusick / theme.js
Last active October 17, 2018 08:50
import { createMuiTheme } from '@material-ui/core/styles';
import primary from 'common/theme/colors/primary';
import secondary from 'common/theme/colors/secondary';
const theme = createMuiTheme({
palette: {
primary: {
main: primary.main,
contrastText: primary.contrastText,
},
{
"animationDistanceThreshold": 5,
"baseUrl": "http://localhost:3030",
"blacklistHosts": null,
"chromeWebSecurity": true,
"defaultCommandTimeout": 4000,
"env": {},
"execTimeout": 60000,
"fileServerFolder": "",
"fixturesFolder": "cypress/fixtures",
{
"breakpoints": {
"keys": [
"xs",
"sm",
"md",
"lg",
"xl"
],
"values": {
@phusick
phusick / historyShape.js
Created June 13, 2018 10:43
React Route Shapes
import PropTypes from 'prop-types';
export default PropTypes.shape({
action: PropTypes.string.isRequired,
block: PropTypes.func.isRequired,
createHref: PropTypes.func.isRequired,
go: PropTypes.func.isRequired,
goBack: PropTypes.func.isRequired,
goForward: PropTypes.func.isRequired,
length: PropTypes.number.isRequired,
@phusick
phusick / server.js
Created November 18, 2016 11:38
Webpack Dev Server with Proxy
/* eslint-disable no-console */
const webpack = require('webpack');
const WebpackDevServer = require('webpack-dev-server');
const cookieParser = require('cookie-parser');
const config = require('./webpack.config')();
const PORT = require('../../package.json').config.port;
function relayRequestHeaders(proxyReq, req) {
console.log('💥💥💥 request 💥💥💥');
@phusick
phusick / esnextbin.md
Last active September 1, 2016 09:59
esnextbin sketch
{
"ROLLER_SKATING": {
"title": "Roller Skating",
"action": {
"present": {
"unspecified":"is **roller skating**.",
"male":"is **roller skating**.",
"female":"is **roller skating**."
},
"past": {
@phusick
phusick / esnextbin.md
Last active February 29, 2016 13:10
esnextbin sketch
@phusick
phusick / esnextbin.md
Last active February 9, 2016 10:21
esnextbin sketch
{
"expand": "full",
"id": 526600591,
"sport": 1,
"start_time": "2015-05-21T07:45:25.000Z",
"distance": 0.8209999799728394,
"duration": 240.09,
"speed_avg": 12.310383305852897,
"speed_max": 19.2895,
"altitude_min": 0.5,