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
| https://www.sharedrop.io/rooms/def6c5b5-1431-448d-ac6e-1d5a2dc27654 |
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 { createStore } from 'redux' | |
| import todoApp from './reducers' | |
| import { addTodo, toggleTodo, setVisibilityFilter, VisibilityFilters } from './actions' | |
| let store = createStore(todoApp) | |
| // Log the initial state | |
| console.log(store.getState()) | |
| // Every time the state changes, log it | |
| // Note that subscribe() returns a function for unregistering the listener | |
| let unsubscribe = store.subscribe(() => |
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 { combineReducers } from 'redux' | |
| import { | |
| visibilityFilter, | |
| todos | |
| } from 'todo' | |
| const todoApp = combineReducers({ | |
| visibilityFilter, | |
| todos | |
| }) |
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
| function todos(state = [], action) { | |
| switch (action.type) { | |
| case ADD_TODO: | |
| return [ | |
| ...state, | |
| { | |
| text: action.text, | |
| completed: false | |
| } | |
| ] |
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
| var likebutton = $('.recsGamepad__button--like') | |
| function swipe() { likebutton.click() } | |
| setInterval(swipe, 150) |
This file has been truncated, but you can view the full file.
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
| isbn,title,description,image | |
| 9780061684326,"1% Windfall, The","""Esta descoberta 'como' livro oferece um prático e abrangente that quadro mostra empresas como usar o preço para impulsionar lucros de diversos segmentos de clientes em ofensiva e defensiva (recessão, inflação e novo concorrente) situações."" - Richard Spaulding, Membro do Conselho de Administração, Scholastic CorporationRafi Mohammed, autor de The Art of Pricing, mostra as empresas como colher inesperadas financeiros e sustentar o crescimento utilizando a pouco explorado e muitas vezes negligenciado a estratégia de fixação de preços.", | |
| 9788578812324,"10 Chocolates Para o Sucesso - Estratégias de Um Coach Para Criar, Motivar e Recompensar Equipes","Lidar com pessoas não é fácil. Motivando a busca constante por melhores resultados, incentivar a superação de metas e objetivos, avaliar periodicamente o compromisso de funcionários: tudo isso é apenas uma parte da vida cotidiana de qualquer líder, seja em uma empresa familiar. Mas como manter o moral |
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
| // Importamos nossas actions | |
| import { increment, decrement } from './actions' | |
| // Setamos o estado inicial | |
| const initialState = { | |
| counter: 0 | |
| } | |
| // Esse é nosso reducer, uma função simples que recebe 2 parâmetros. | |
| // O state é o estado atual da aplicação e a action descreve a ação que será disparada. |
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
| { | |
| type: 'INCREMENT', | |
| number: 3 | |
| } |
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
| export function increment(number) { | |
| return { | |
| type: 'INCREMENT', | |
| number | |
| } | |
| } | |
| export function decrement(number) { | |
| return { | |
| type: 'DECREMENT', | |
| number |
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
| class BookSpider(BaseSpider): | |
| name = "book_spider" | |
| custom_settings = { | |
| 'ITEM_PIPELINES': { | |
| 'my_app.pipelines.BookPipeline': 300, | |
| } | |
| } | |
| def parse(self, response): |
NewerOlder