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 |
| using namespace System.Collections.Generic | |
| # Encapsulate an arbitrary command | |
| class PaneCommand { | |
| [string]$Command | |
| PaneCommand() { | |
| $this.Command = ""; | |
| } |
Below describes the only way I was able to get (programmatic) access to the YouTube Analytics API on behalf of our Brand Account. Google documentation is convoluted, to say the least, so if you know a more straightforward way, please do share.
Library tab and enable desired APIs (e.g. YouTube Analytics)OAuth consent screen and make project external. Select Test mode| import os | |
| import sys | |
| import datetime | |
| from glob import glob | |
| from argparse import ArgumentParser | |
| # settings | |
| projectNamePrefix = "vlog-" | |
| presetName = "Default" # You have to define this preset by your self. <---- |
| <# | |
| References: | |
| - https://docs.microsoft.com/en-us/dotnet/api/system.net.websockets.clientwebsocket?view=netframework-4.5 | |
| - https://github.com/poshbotio/PoshBot/blob/master/PoshBot/Implementations/Slack/SlackConnection.ps1 | |
| - https://www.leeholmes.com/blog/2018/09/05/producer-consumer-parallelism-in-powershell/ | |
| #> | |
| $client_id = [System.GUID]::NewGuid() | |
| $recv_queue = New-Object 'System.Collections.Concurrent.ConcurrentQueue[String]' |
| #cloud-config | |
| package_update: true | |
| manage_resolv_conf: true | |
| resolv_conf: | |
| nameservers: | |
| - '8.8.8.8' | |
| - '8.8.4.4' | |
| - '1.1.1.1' |
Sometimes a programming language has a "strict mode" to restrict unsafe constructs. E.g., Perl has use strict, Javascript has "use strict", and Visual Basic has Option Strict. But what about bash? Well, bash doesn't have a strict mode as such, but it does have an unofficial strict mode:
set -euo pipefail
set -e
| sudo apt install curl gnupg2 ca-certificates lsb-release | |
| echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list | |
| curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add - | |
| sudo apt update | |
| NGINX_VERSION=$(apt show nginx | grep "^Version" | cut -d " " -f 2 | cut -d "-" -f 1) | |
| # take note of the nginx version in the "stable" release. e.g. 1.14.2 | |
| echo NGINX version $NGINX_VERSION | |
| wget https://hg.nginx.org/pkg-oss/raw-file/default/build_module.sh | |
| chmod a+x build_module.sh |
For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.
After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft
WARNING: A work in progress, this is a first attempt at getting VideoJs working in a Typescript and React Enviroment.
This was inspired from the VideoJS React Tutorial - (see also Brightcover Player with React and Typescript)
Prerequistes Using TypeScript-React-Starter: https://github.com/Microsoft/TypeScript-React-Starter
Then npm install packages