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 |
I've spent the day trying to get this setup working with GitHub and given the number of gotcha's I encountered, it seemed like a good idea to document how I finally got this working with as few hacks as possible. There's a lot of documentation out there (some of it old and misleading) and committing here for posterity will help me remember this when I inevitably need to do this again.
Passwords are simply not enough these days. Regardless of the company, breaches (and the associated Personally Identifiable Information harvested) are a matter of not if, but when. There are a number of things you can do to protect yourself, but being on the tin-foil-hat side of paranoia, means there are a few Commandents that I adhere to (and recommend for other folks)[Insert link to Fight Club Rules for the Secure Internet].
That being said, if you use 2-factor authentication and have committed to using a hardware token such as the Yubikey, then you're already ahead of the curve. The problem is that wh
| cmake_minimum_required(VERSION 2.8.11) | |
| project(cmake_wrapper) | |
| include(conanbuildinfo.cmake) | |
| conan_basic_setup() | |
| if (CONAN_COMPILE_DEFINITIONS_FLANN MATCHES "FLANN_STATIC") | |
| set(FLANN_USE_STATIC ON) | |
| endif() |
Just make Erlang to do some light-load task in a bunch of relatively short leaving processes. Calculating PI to 80th digit in batches per 10 procs with short, 8 ms, sleep in-between, to give schedulers a breath space, will do.
Run erl with 8 schedulers and no busy waiting on schedulers at all.
| #ifndef STRING_CONSTANT_H | |
| #define STRING_CONSTANT_H | |
| #include <cstddef> | |
| #include <stdexcept> | |
| #include <string> | |
| #include <type_traits> | |
| #include <utility> |
| # Example with basic types | |
| --- | |
| hash: | |
| string: some text | |
| number: 12345 | |
| array_of_bool: [on, off, true, false, yes, no] | |
| ruby symbol: :symbol | |
| array: | |
| - item one | |
| - item two |
| #ifdef _WIN32 | |
| #include <malloc.h> | |
| #endif | |
| #include <cstdint> | |
| #include <vector> | |
| #include <iostream> | |
| /** | |
| * Allocator for aligned data. |