This file contains 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
## Multi authentication | |
http://stackoverflow.com/questions/34614753/can-anyone-explain-laravel-5-2-multi-auth-with-example | |
## Repository Patterns | |
https://bosnadev.com/2015/03/07/using-repository-pattern-in-laravel-5/ |
This file contains 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
// Sending form data | |
chai = require('chai'); | |
chaiHttp = require('chai-http') | |
chai.use(chaiHttp); | |
stripe_request = chai.request('https://api.stripe.com'); | |
stripe_request.post('/v1/tokens') | |
.set('content-type', 'application/x-www-form-urlencoded') | |
.send({ |
This file contains 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
// Order by rank function | |
function orderByRank(arr) { | |
return arr.sort(function(a, b) { | |
return a.rank > b.rank; | |
}); | |
} | |
//Average ranking function | |
function avgRanking(arr) { | |
var total = arr.reduce(function(total, next) { |
This file contains 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
// Link to the issue addressed | |
https://github.com/redux-form/redux-form/issues/603#issuecomment-295043224 | |
// FormContainer | |
import Form from './Form'; | |
.... | |
class FormContainer extends Component | |
{ | |
onSubmit (data, dispatch) {...} |