Run this command to remember your password:
git config --global credential.helper 'cache --timeout 28800'Above command will tell git to cache your password for 8 hours.
| import { select, put, take } from 'redux-saga/effects'; | |
| function* emptySaga() {} | |
| export function* withConfirmation(text, onConfirm, onCancel = emptySaga) { | |
| yield put({ type: 'ShowConfirmationDialog', payload: text }); | |
| const { type } = yield take([ | |
| 'ConfirmationDialogConfirmed', | |
| 'ConfirmationDialogCanceled' |
| """ | |
| Archive branches that are merged into master. | |
| This is done by tagging them as archive/<branchname> and removing them both locally and | |
| remotely. Before each operation, the user is asked for confirmation. | |
| """ | |
| # This dependency can be found on github: https://github.com/Chiel92/python-shellout | |
| from shellout import get, out, confirm | |
| # Tag merged branches |
| function timerMiddleware({dispatch, getState}) { | |
| const timers = {}; | |
| return next => action => { | |
| if(action.type == "START_TIMER") { | |
| const {action, timerName, timerInterval} = action.payload; | |
| clearInterval(timers[timerName]); |
| { | |
| "plugins": [ | |
| "spellcheck" | |
| ], | |
| "rules": | |
| // Spellcheck | |
| // | |
| "spellcheck/spell-checker": ["warn", { | |
| "skipWords": [ | |
| // own names |
| const stream = require("stream"); | |
| /** Simplified version of split() on npm. */ | |
| const split = new stream.Transform({ | |
| /** | |
| * @param {Buffer | string} chunk is the data from the Readable Stream. | |
| * @param {string} encoding is the file encoding, but isn't used here. | |
| * @param {() => void} next is a callback function called when you finish working | |
| * with this chunk. | |
| */ |
| import { Module } from '../../core'; | |
| import AppContainer from './AppContainer.jsx'; | |
| const AppModule = new Module('App'); | |
| AppModule | |
| .setInitialState({ counter: 0 }) | |
| // This will create Action Types (with normalized names) and Action Creators. | |
| // The application container which is a wrapper around the redux store will | |
| // compose all reducers of registered modules. The module name is used as key in the |
| import { combineReducers } from 'redux'; | |
| import users from './reducers/users'; | |
| import posts from './reducers/posts'; | |
| export default function createReducer(asyncReducers) { | |
| return combineReducers({ | |
| users, | |
| posts, | |
| ...asyncReducers | |
| }); |
| import React, {Component} from 'react'; | |
| import {bindActionCreators} from "redux" | |
| import { connect } from 'react-redux'; | |
| import {schema, getModelByType} from "models/models" | |
| import SomeFormComponent from "SomeFormComponent" | |
| import {selectedItemSelector, isEditingSelector} from "selectors/entities" | |
| let mapStateToProps = (state) => { |
| export default function createInjectMiddleware(map) { | |
| return store => next => action => { | |
| if (typeof action !== "object" | |
| || typeof action.payload !== "function" | |
| || action.meta == null | |
| || action.meta.inject == null) { | |
| return next(action); | |
| } | |
| const defaultInjections = { |