Imagine we have a reducer to control a list of items:
function listOfItems(state: Array<Object> = [], action: Object = {}): Array<Object> {
switch(action.type) {
case 'SHOW_ALL_ITEMS':
return action.data.items
default:| export const getCollections = () => { | |
| return (dispatch, getState) => { | |
| const state = getState() | |
| const params = { | |
| priceLow: state.sidebar.lowPrice, | |
| priceHigh: state.sidebar.highPrice | |
| } | |
| dispatch({ | |
| type: COLLECTION, |
| var gulp = require('gulp'); | |
| var sass = require('gulp-ruby-sass'); | |
| var browserSync = require('browser-sync'); | |
| var reload = browserSync.reload; | |
| gulp.task('sass', function() { | |
| return sass('app/scss/main.scss') | |
| .pipe(gulp.dest('app/css')) | |
| .pipe(reload({ stream:true })); | |
| }); |
| source 'https://gems.ruby-china.org' | |
| gem 'sinatra' | |
| gem 'sinatra-websocket' |
| /** | |
| * Linkurious 2012, all rights reserved. | |
| * Sébastien Heymann <seb@linkurio.us>, | |
| * Romain Yon <romain@linkurio.us> | |
| * | |
| * Please use http://jsbeautifier.org/ and indent with 2 spaces. | |
| * | |
| * Lib docs: | |
| * http://twitter.github.com/bootstrap/ | |
| * http://docs.jquery.com/ |
| license: mit | |
| scrolling: yes |
| package org.kt3k.bankaccount; | |
| public class BankAccount { | |
| private String id; | |
| private Integer balance; | |
| public BankAccount(String id, Integer balance) { | |
| this.id = id; | |
| this.balance = balance; |
| # Doxyfile 1.7.5.1 | |
| # This file describes the settings to be used by the documentation system | |
| # doxygen (www.doxygen.org) for a project. | |
| # | |
| # All text after a hash (#) is considered a comment and will be ignored. | |
| # The format is: | |
| # TAG = value [value, ...] | |
| # For lists items can also be appended using: | |
| # TAG += value [value, ...] |
| { | |
| "shell_cmd": "/usr/local/bin/dot -Tpng $file -o $file_path/$file_base_name.png && open $file_path/$file_base_name.png", | |
| "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", | |
| "selector": "source.dot" | |
| } |
| worker_processes 1; | |
| error_log logs/error.log; | |
| events { | |
| worker_connections 1024; | |
| } |