Skip to content

Instantly share code, notes, and snippets.

View mjason's full-sized avatar

Mj mjason

  • South China University of Technology
  • Guangzhou, China
  • 18:48 (UTC +08:00)
View GitHub Profile
defmodule Absinthe.Ecto do
import Absinthe.Resolution.Helpers
@moduledoc """
Provides some helper functions for easy batching of ecto assocations
These functions all make use of the batch plugin found in Absinthe, they're
merely just some helpful ways to use this plugin in the context of simple ecto
associations.
@mjason
mjason / Dockerfile
Last active February 25, 2024 21:51
build phoenix in docker
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y git wget curl build-essential
RUN wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && dpkg -i erlang-solutions_1.0_all.deb
RUN apt-get update
RUN apt-get install erlang -y
RUN apt-get install -y elixir
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -