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 |
| use opencv::{ | |
| Result, | |
| prelude::*, | |
| objdetect, | |
| highgui, | |
| imgproc, | |
| core, | |
| types, | |
| videoio, | |
| }; |
| defmodule RequestHelper do | |
| @moduledoc """ | |
| Reference from https://gist.github.com/avdi/7990684 | |
| Stream download large file from url | |
| """ | |
| require Logger | |
| @doc """ | |
| Get stream data from url | |
| mode could be `:binary` or `:line` |
| package main | |
| import ( | |
| "context" | |
| "time" | |
| "go.mongodb.org/mongo-driver/mongo" | |
| "go.mongodb.org/mongo-driver/mongo/options" | |
| "go.mongodb.org/mongo-driver/mongo/readpref" | |
| ) |
| import struct | |
| import ubluetooth as bt | |
| from micropython import const | |
| MANUFACTURER_ID = const(0x004C) | |
| DEVICE_TYPE = const(0x02) | |
| DATA_LENGTH = const(0x15) | |
| BR_EDR_NOT_SUPPORTED = const(0x04) | |
| FLAG_BROADCAST = const(0x01) | |
| MANUFACTURER_DATA = const(0xFF) |
| package main | |
| import ( | |
| "fmt" | |
| "sync" | |
| ) | |
| type Fetcher interface { | |
| // Fetch returns the body of URL and | |
| // a slice of URLs found on that page. |
| <div class="container" *ngIf="userLoggedIn"> | |
| .... visible only to authenticated users | |
| <button *ngIf="user.admin">Delete User</button> | |
| </div> |
After setting up docker to generate React app without installing node js in https://gist.github.com/przbadu/4a62a5fc5f117cda1ed5dc5409bd4ac1 It was confusing to some of the devs, how to run react app, so I am creating this as second step to the configuration.
cd my-react-app
touch Dockerfile Dockerfile.dev docker-compose.yml .dockerignore| image: node:12.13.0-alpine | |
| before_script: | |
| - npm i -g firebase-tools | |
| test-functions: | |
| stage: test | |
| script: | |
| - cd functions | |
| - npm install |