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 { bindActionCreators } from 'redux'; | |
import { connect } from 'react-redux'; | |
export default function combine(mapConnectsToProps) { | |
const connectsKeys = Object.keys(mapConnectsToProps); | |
const combinedMapStateToProps = (state, ownProps) => { | |
const stateProps = {}; | |
connectsKeys.forEach((connectKey) => { |
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
#!/usr/bin/env bash | |
# install docker | |
# https://docs.docker.com/engine/installation/linux/ubuntulinux/ | |
# install docker-compose | |
# https://docs.docker.com/compose/install/ | |
# install letsencrypt | |
# https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04 |
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
/** Example of angular factory. | |
Using promises, this service guarantees that any API calls to google services | |
will happen only after map object was initialized. | |
**/ | |
angular.module('services') | |
.factory('GoogleServices', function($q, $http, $rootScope, $map) { | |
var PlacesService, | |
DirectionsService; |