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
/* | |
Requirement: | |
Refactor this function to improve legibility/maintainability | |
*/ | |
const mapStateToProps = state => { | |
const contactsData = getContacts(state); | |
const managersData = getManagers(state); | |
let contacts; |
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 from 'react'; | |
import { BrowserRouter, Route, Switch } from 'react-router-dom'; | |
import { createStore, applyMiddleware, compose } from 'redux'; | |
import { Provider } from 'react-redux'; | |
import createSagaMiddleware from 'redux-saga'; | |
import rootReducer from 'reducers'; | |
import rootSaga from 'sagas'; | |
import MainContainer from 'components/Main/MainContainer'; | |
import ThankYouContainer from 'screens/ThankYou/ThankYouContainer'; |
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
user www-data; | |
pid /run/nginx.pid; | |
worker_processes auto; | |
worker_rlimit_nofile 65000; | |
events { | |
worker_connections 2048; | |
multi_accept on; | |
use epoll; | |
} |
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
class App | |
class << self | |
def animate(frames, seconds) | |
frame = 0; | |
advance = 1; | |
frames_per_second = frames.size * 2; | |
total_frames = frames_per_second * seconds; | |
total_frames.times do |