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 |
| import fs from 'fs'; | |
| import { Buffer } from 'node:buffer'; | |
| import { | |
| S3Client, | |
| CreateMultipartUploadCommand, | |
| UploadPartCommand, | |
| CompleteMultipartUploadCommand | |
| } from '@aws-sdk/client-s3'; | |
| // 100 MB chunk/part size |
| Phoenix esbuild with Tailwind+Fontawesome |
| FROM elixir:latest | |
| # Install debian packages | |
| RUN apt-get update && \ | |
| apt-get install --yes build-essential inotify-tools postgresql-client git && \ | |
| apt-get clean | |
| ADD . /app | |
| # Install Phoenix packages |
Generate a new Elixir project using mix and add cowboy and plug as dependencies in mix.exs:
defp deps do
[
{:cowboy, "~> 1.0.0"},
{:plug, "~> 0.8.1"}
]
end