Skip to content

Instantly share code, notes, and snippets.

View MatthieuSegret's full-sized avatar

Matthieu Segret MatthieuSegret

View GitHub Profile
@jbaxleyiii
jbaxleyiii / reduxForm.js
Created May 12, 2016 00:44
Redux-form and apollo
import React, {Component} from 'react';
import {reduxForm} from 'redux-form';
import { connect } from 'react-apollo';
// you mutation code
@connect({ mapMutationsToProps })
class ContactForm extends Component {
onSubmit = (...args) => {
const { handleSubmit, mutations } = this.props;
mutations['myMutation'](args);
@bsedat
bsedat / Dockerfile
Last active August 8, 2023 05:56
Elixir Phoenix Umbrella App + Distillery Multistage Docker Build
FROM elixir:1.4.5 as asset-builder-mix-getter
ENV HOME=/opt/app
RUN mix do local.hex --force, local.rebar --force
# Cache elixir deps
COPY config/ $HOME/config/
COPY mix.exs mix.lock $HOME/
COPY apps/myproject_web/mix.exs $HOME/apps/myproject_web/
COPY apps/myproject_web/config/ $HOME/apps/myproject_web/config/