This file contains hidden or 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 { | |
applyMiddleware, | |
combineReducers, | |
compose, | |
createStore as createReduxStore, | |
} from 'redux'; | |
import { connectRoutes } from 'redux-first-router'; | |
import thunk from 'redux-thunk'; | |
import createHistory from 'history/createBrowserHistory'; |
This file contains hidden or 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
const COLORS = { | |
blue: ['#1E88E5', '#90CAF9'], | |
brown: ['#6D4C41', '#D7CCC8'], | |
gray: ['#212121', '#BDBDBD'], | |
green: ['#388E3C', '#A5D6A7'], | |
red: ['#E53935', '#EF9A9A'], | |
orange: ['#F4511E', '#FFAB91'], | |
purple: ['#8E24AA', '#E1BEE7'], | |
yellow: ['#FFD600', '#FFF59D'], | |
} |
This file contains hidden or 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
github - https://github.com/pvpshoot | |
vk - http://vkontakte.ru/pvpshoot | |
tw - https://twitter.com/pvpshoot | |
telegram - @pvpshoot |
This file contains hidden or 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 { types } from 'mobx-state-tree'; | |
const StatusModel = types | |
.model('StatusModel', { | |
statusValue: types.optional(types.enumeration('status', ['initial', 'loading', 'success', 'failed']), 'initial'), | |
statusResponseReasonMessage: types.maybe(types.string), | |
}) | |
.views(self => ({ | |
get isInitial() { | |
return self.statusValue === 'initial'; |
This file contains hidden or 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
file = File.open("input"); | |
lines = file.readlines | |
arr = [] | |
subA = [] | |
i = 0 | |
for line in lines do | |
i += 1 | |
n = line.to_i | |
if n > 0 |
OlderNewer