Skip to content

Instantly share code, notes, and snippets.

View fantypants's full-sized avatar

Matthew fantypants

View GitHub Profile
@fantypants
fantypants / import_live.ex
Created July 23, 2021 10:35
UploadChannel triggers arg error
defmodule ModuleWeb.ImportLive do
use Phoenix.LiveView
require Logger
import Ecto.Query
def mount(_params, _session, socket) do
{:ok,
socket
defmodule GenysysWeb.SectionTemplateArrayHelpers do
use Phoenix.HTML
"""
Use like (In template):
<%= map_array_input f, :features, ["title", "body", "color", "icon"] %>
<%= map_array_add_button f, :features, ["title", "body", "color", "icon"] %>
Result %{"0" => %{args..}}
"""
Bus 001 Device 008: ID 12d1:1568 Huawei Technologies Co., Ltd.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDevCouldn't open device, some information will be missing
iceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
Bus 001 Device 007: ID 12d1:15c1 Huawei Technologies Co., Ltd. ME906s LTE M.2 Module
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 255
bMaxPacketSize0 64
idVendor 0x12d1 Huawei Technologies Co., Ltd.