Skip to content

Instantly share code, notes, and snippets.

View tensiondriven's full-sized avatar
💭
We shape clay into a pot, but it is the emptiness inside that holds what we want

Jonathan Yankovich tensiondriven

💭
We shape clay into a pot, but it is the emptiness inside that holds what we want
View GitHub Profile
[error] #PID<0.6158.0> running Checklist.Endpoint terminated
Server: localhost:4000 (http)
Request: GET /questions
** (exit) an exception was raised:
** (Protocol.UndefinedError) protocol Enumerable not implemented for %Checklist.Question{__meta__: #Ecto.Schema.Metadata<:loaded>, answers: #Ecto.Association.NotLoaded<association :answers is not loaded>, body: nil, gender: "A", id: 1007, parent_id: 1, questions: #Ecto.Association.NotLoaded<association :questions is not loaded>, title: "Abrasion", user: #Ecto.Association.NotLoaded<association :user is not loaded>, user_id: 1}
(elixir) lib/enum.ex:1: Enumerable.impl_for!/1
(elixir) lib/enum.ex:116: Enumerable.reduce/3
(elixir) lib/enum.ex:1477: Enum.reduce/3
(checklist) Checklist.Router.Helpers.segments/3
(checklist) web/router.ex:1: Checklist.Router.Helpers.question_path/3
@tensiondriven
tensiondriven / gist:04a36f9deb84b7823296cda1c89d42f4
Last active August 14, 2016 22:36
Elm complier confusing error?

I have the following model and update function:

type alias Model =
  { people: List String
  , entry: String
  }

model : Model
model =
iOS 10.1.1
This update includes Portrait Camera for iPhone 7 Plus (beta), transit directions for Japan, stability improvements and bug fixes.
iOS 10.1.1 introduces new features and improvements including:
Camera and Photos
• Introduces Portrait Camera for iPhone 7 Plus that creates a depth effect that keeps your subject sharp while creating a beautifully blurred background (beta)
• People names in the Photos app are saved in iCloud backups