I hereby claim:
- I am cheerazar on github.
- I am cheerazar (https://keybase.io/cheerazar) on keybase.
- I have a public key ASADymxiS3SJ2tFWq_qnl7UHrquAuK9J2Ca0rv_d7wM0yAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
const fs = require('fs'); | |
const path = require('path'); | |
module.exports = filename => | |
new Promise((resolve, reject) => { | |
fs.readFile(path.join(__dirname, 'data', filename), 'utf8', (err, data) => { | |
if (err) { | |
return reject(err); | |
} |
const readTabDelimitedFile = require('./readTabDelimitedFile'); | |
/* | |
products.tab = A list of product names tab delimited with categories | |
sales.tab = A list of product names tab delimited with sales amount | |
From this data we'd like you to answer two questions: | |
* What category has the highest average sales price? (Please include the average sale price) | |
* What is the minimum and maximum sale in the category 'Breakfast' | |
*/ |
// Must be using node version 5.12 or greater to use the | |
// spread syntax | |
// recursively go through the array of inputs and flatten | |
// them appropriately. | |
const flatten = inputs => | |
inputs.reduce((total, next) => { | |
if (Array.isArray(next)) { | |
return [...total, ...flatten(next)]; | |
} |
import { compose, createStore, applyMiddleware } from 'redux'; | |
import thunk from 'redux-thunk'; | |
import reducers from '../reducers'; | |
const middleware = [thunk]; | |
// eslint-disable-next-line no-underscore-dangle | |
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; | |
export default createStore(reducers, composeEnhancers(applyMiddleware(...middleware))); |
class BoggleBoard | |
#your code here | |
end | |
dice_grid = [["b", "r", "a", "e"], | |
["i", "o", "d", "t"], | |
["e", "c", "l", "r"], |