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
// rootReducer.js | |
export default combineReducers({ | |
a: reducerA, | |
b: reducerB | |
}); | |
// store.js | |
import rootReducer from './rootReducer'; | |
export default createStore(rootReducer); |
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
RootComponent.js | |
|_AppContainer.js | |
|_App.js | |
|_loginReducer.js | |
|_PageContainer.js | |
|_Page.js | |
|_pageReducer.js |
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
RootComponent.js | |
|_store.js | |
| |_rootReducer.js | |
| |_loginReducer.js | |
| |_pageReducer.js | |
|_AppContainer.js | |
|_App.js | |
|_PageContainer.js | |
|_Page.js |
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
// rootReducer.js | |
export default combineReducers({ | |
home: homeReducer, | |
productList: productListReducer | |
}); | |
// store.js | |
export default createStore(rootReducer/* , initialState, enhancer */); | |
// Root.js |
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
package com.sagiavinash.test; | |
import java.util.Scanner; | |
/* | |
Sample Standard Input: | |
1 1 1 | |
1 1 | |
Sample Standard Output: (addition) | |
1 2 2 |
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 search() { | |
grep -inr --exclude={vendor\.min\.js,build\.min\.js,build\.js} --exclude-dir={node_modules,dist-test,dist-server,dist-client,coverage} $1 * | |
} | |
function replace() { | |
grep -ilr --exclude-dir={node_modules,dist-test,dist-server,dist-client} "$1" * | xargs -I@ sed -i '' "s/$1/$2/g" @ | |
} | |
function searchf() { | |
find . -name "*$1*" | |
} | |
function searchd() { |
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 createAction = require('redux-actions').createAction; | |
function createAsyncTaskActions(asynTaskId) { | |
return { | |
start: createAction( | |
`${asynTaskId}/START`, | |
() => null, | |
(query) => query | |
), | |
end: createAction( |
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
#Web Payments (Chrome Dev Summit 2016) | |
https://www.youtube.com/watch?v=U0LkQijSeko&t=2s | |
Integration Guide: https://goo.gl/5LCXH2 | |
Android Pay on the Web Integration Guide: https://goo.gl/4hDSIS | |
PaymentRequest Sample Code: https://goo.gl/frPqKP | |
# Unified checkout experience using Web Payment API: Gandhi Kishor Addanki, Samsung (hasgeek talk) | |
https://www.youtube.com/watch?v=Fsfi9BiVFyc&feature=share | |
https://medium.com/samsung-internet-dev/how-to-take-payments-on-the-web-with-the-payment-request-api-a523f6fc7c1f |
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 Stack { | |
constructor() { | |
this.items = Array.prototype.slice.call(arguments, 0); | |
} | |
push(item) { | |
this.items.push(item); | |
} | |
pop() { | |
if (!this.items.length) throw Error('Stack is empty: no items to pop'); |
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
.a-b.a-c { | |
color: black; | |
} |