I hereby claim:
- I am stueccles on github.
- I am stueccles (https://keybase.io/stueccles) on keybase.
- I have a public key ASDrGv3wjj01-cYrZQQXXN7lOw7zyH0l555nGyR2xThY1Ao
To claim this, I am signing this object:
| using { /Verse.org/Random } | |
| Array<public> := module: | |
| # Makes an `array` with only unique elements | |
| (Input:[]t where t:subtype(comparable)).Unique<public>()<transacts>:[]t = | |
| var UniqueArray : []t = array{} | |
| for (Value : Input): | |
| if (UniqueArray.Find[Value] > -1) {} | |
| else: |
I hereby claim:
To claim this, I am signing this object:
| defp check_for_order(conn, _params) do | |
| case get_current_order do | |
| nil -> | |
| conn |> redirect(to: "/") |> halt | |
| order -> | |
| assign(conn, :order, order) | |
| end | |
| end |
| def line_item_query(order, variant_id) do | |
| from l in assoc(order, :line_items), | |
| where: l.variant_id == ^variant_id, | |
| select: l | |
| end |
| for {img, index} <- Enum.with_index(product_images) do |
| mix run priv/repo/seeds.exs |