       _ -> [hours + 12, minutes]
     end
   end
+
+  def easy_int(str) when is_binary(str) do
+    {int, _} = Integer.parse(str)
+    int
+  end
+
+  def easy_int(int), do: int
 end

defmodule AdminWeb.FormController do
  import ShortMaps

  @cosmic_config_slug Application.get_env(:admin, :cosmic_info_slug)


      success_hook
      |> HTTPotion.post(body: created |> Poison.encode!())
      |> IO.inspect()

      json(conn, created)
    rescue e ->
      failure_hook
      |> HTTPotion.post(body: params |> Poison.encode!())
      |> IO.inspect()

      json(conn, %{"ok" => "But error"})
    end
  end

  def do_create(body) do
    ~m(first_name last_name email phone city state zip event_type zip title date
       start_time end_time venue address description) = body

