Skip to content

Instantly share code, notes, and snippets.

@ivanlomba
ivanlomba / cheese-factory.ex
Last active December 29, 2017 12:41
Phoenix 1.3 cheese factory schema example
defmodule cheesify.Factory do
use Ecto.Schema
schema "cheese_factory" do
field :name, :string
field :phone, :string
field :address, :string
timestamps()
end
@ivanlomba
ivanlomba / cheese.ex
Last active December 29, 2017 10:23
Phoenix 1.3 cheese schema example
defmodule cheesify.Cheese do
use Ecto.Schema
schema "cheese" do
field :name, :string
field :milk, :string
field :degree_of_curing, :string
field :description, :string
field :place_of_origin, :string
field :cheese_factory_id, :id
@ivanlomba
ivanlomba / absinthe_deps.exs
Last active November 21, 2017 15:39
absinthe deps
{:absinthe, "~> 1.3.0"},
{:absinthe_plug, "~> 1.3.0"},
{:absinthe_ecto, git: "https://github.com/absinthe-graphql/absinthe_ecto.git"}
@ivanlomba
ivanlomba / GSoC2016-WorkSubmission.md
Last active August 22, 2016 15:42
GSoC 2016 Work Product Submission - Add support for arbitrary CPU and RAM in the ComputeService (jclouds-482)

Add support for arbitrary CPU and RAM in the ComputeService (jclouds-482)

Mentor: nacx

Org: Apache Software Foundation

Student: Iván Lomba

Description of the new feature, how to use it and further development (jclouds blog):