This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule ModuleWeb.ImportLive do | |
use Phoenix.LiveView | |
require Logger | |
import Ecto.Query | |
def mount(_params, _session, socket) do | |
{:ok, | |
socket |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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..}} | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |