Skip to content

Instantly share code, notes, and snippets.

View ifours's full-sized avatar
🎯
Focusing

Ilja Satchok ifours

🎯
Focusing
View GitHub Profile
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) => {
@ifours
ifours / start_docker_registry.bash
Created September 21, 2017 14:13 — forked from PieterScheffers/start_docker_registry.bash
Start docker registry with letsencrypt certificates (Linux Ubuntu)
#!/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
@ifours
ifours / examples
Last active August 29, 2015 14:24
/** 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;