Map [1]
| Operation | Time Complexity |
|---|---|
| Access | O(log n) |
| Search | O(log n) |
| Insertion | O(n) for < 32 elements, O(log n) for >= 32 elements [2] |
| Deletion | O(n) for < 32 elements, O(log n) for >= 32 elements |
| [ | |
| { | |
| "productName": "(PEA)+ 120 Capsules", | |
| "sku": "000000000300089862", | |
| "medPaxSku": "", | |
| "medPaxDetails": null, | |
| "categories": "Immune System Support,Joint & Muscle Support,All", | |
| "quantity": 80, | |
| "releaseDate": "2022-05-01T15:00:07.7866667", | |
| "wholesalePrice": 46.9900, |
| require "paq" { | |
| "savq/paq-nvim", | |
| -- Let Paq manage itself | |
| -- libs | |
| "tjdevries/nlua.nvim", | |
| "nvim-lua/plenary.nvim", | |
| "nvim-lua/popup.nvim", | |
| "rktjmp/lush.nvim", | |
| "tjdevries/colorbuddy.vim", | |
| -- tools |
| # TODO: Extract into it's own library | |
| defmodule AbsintheSocket do | |
| require Logger | |
| alias Phoenix.Channels.GenSocketClient | |
| @behaviour GenSocketClient | |
| @control_topic "__absinthe__:control" | |
| defdelegate fetch(term, key), to: Map | |
| defdelegate get(term, key, default), to: Map |
| import "../css/app.scss" | |
| import "phoenix_html" | |
| import {Socket} from "phoenix" | |
| import topbar from "topbar" | |
| import {LiveSocket} from "phoenix_live_view" | |
| import Alpine from 'alpinejs' | |
| window.Alpine = Alpine | |
| Alpine.start() | |
| let csrfToken = document.querySelector("meta[name='csrf-token']").getAttribute("content") |
| defmodule MyApp.Foo do | |
| @on_definition MyApp.SpecToCallback | |
| @spec bar(String.t()) :: String.t() | |
| def bar(foobar) do | |
| impl().bar(foobar) | |
| end | |
| defp impl, do: Application.get_env(:my_app, :my_app_foo_impl, __MODULE__.DefaultImpl) | |
| end |
| # Step 1 | |
| def create_subscription(email, plan_id, payment_method_id) do | |
| with %User{customer_id: nil, name: name} = user <- | |
| Repo.get_by(User, email: email), | |
| {:ok, %Stripe.Customer{id: customer_id}} <- | |
| Stripe.Customer.create(%{ | |
| name: name, | |
| email: email, | |
| payment_method: payment_method_id, |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
| { | |
| "workbench.colorTheme": "Noctis", | |
| "window.zoomLevel": 0, | |
| "files.autoSave": "onFocusChange", | |
| "editor.suggestSelection": "first", | |
| "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue", | |
| "spellright.language": [ | |
| "en" | |
| ], | |
| "spellright.documentTypes": [ |