I hereby claim:
- I am mxplusb on github.
- I am mxplusb (https://keybase.io/mxplusb) on keybase.
- I have a public key ASDPyrG03R4B3BoSw8JgQh2EKX5lp2m6slenVnrBVJvHNAo
To claim this, I am signing this object:
| confirm-before-quit = false | |
| # Hide the cursor while typing | |
| # | |
| # Default is `false` | |
| # | |
| # hide-cursor-when-typing = false | |
| # Ignore theme selection foreground color | |
| # | |
| # Default is false |
| #!/usr/bin/env python3 | |
| import argparse | |
| import yaml | |
| import subprocess | |
| import sys | |
| import tempfile | |
| import os | |
| from pathlib import Path |
| disk engine/disk engine put/1024 | |
| time: [3.8519 µs 3.8609 µs 3.8708 µs] | |
| thrpt: [252.29 MiB/s 252.93 MiB/s 253.53 MiB/s] | |
| change: | |
| time: [-7.4819% -6.9997% -6.5191%] (p = 0.00 < 0.05) | |
| thrpt: [+6.9737% +7.5265% +8.0870%] | |
| Performance has improved. | |
| Found 6 outliers among 100 measurements (6.00%) | |
| 4 (4.00%) high mild | |
| 2 (2.00%) high severe |
I hereby claim:
To claim this, I am signing this object:
| type ShardRouter struct { | |
| nh runtime.IHost | |
| logger zerolog.Logger | |
| hasher hash.Hash64 // fnv.New64a() since we need fast, not secure | |
| shardCount atomic.Int64 | |
| } | |
| // CalcShard is an implementation of Jump Consistent Hash. It computes a string key and returns the shard the key can be | |
| // found in. | |
| // ref: https://arxiv.org/ftp/arxiv/papers/1406/1406.2294.pdf |
| using System; | |
| public class Foo { | |
| private int[] _arr; | |
| private readonly Guid _id; | |
| private readonly object _lockObj; | |
| public this[int index] { | |
| get => _arr[index]; | |
| set => Set(index, value); |
| #!/usr/bin/env python3 | |
| from argparse import ArgumentParser | |
| from os import listdir, stat | |
| from os.path import sep as pathsep | |
| from glob import glob | |
| from shutil import SameFileError, copy, get_terminal_size | |
| from typing import Union | |
| from sys import exit, stdout | |
| from alive_progress import alive_bar | |
| from concurrent.futures import ProcessPoolExecutor, as_completed |
| {"nodes": [{"key": "chapter-08", "attributes": {"node_type": "doc", "color": "#0000FF", "label": "chapter-08"}}, {"key": "hurried nervous manner", "attributes": {"node_type": "key_phrase", "color": "#FFA500", "label": "hurried nervous manner"}}, {"key": "shrill, loud voice", "attributes": {"node_type": "key_phrase", "color": "#FFA500", "label": "shrill, loud voice"}}, {"key": "crimson velvet cushion", "attributes": {"node_type": "key_phrase", "color": "#FFA500", "label": "crimson velvet cushion"}}, {"key": "low voice", "attributes": {"node_type": "key_phrase", "color": "#FFA500", "label": "low voice"}}, {"key": "sulky tone", "attributes": {"node_type": "key_phrase", "color": "#FFA500", "label": "sulky tone"}}, {"key": "unjust things", "attributes": {"node_type": "key_phrase", "color": "#FFA500", "label": "unjust things"}}, {"key": "many footsteps", "attributes": {"node_type": "key_phrase", "color": "#FFA500", "label": "many footsteps"}}, {"key": "little dears", "attributes": {"node_type": "key_phrase", "color |
| // ref: https://github.com/Azure/azure-iot-sdk-c/blob/master/iothub_client/samples/iothub_ll_telemetry_sample/iothub_ll_telemetry_sample.c | |
| #include <Arduino.h> | |
| // Copyright (c) Microsoft. All rights reserved. | |
| // Licensed under the MIT license. See LICENSE file in the project root for full license information. | |
| // CAVEAT: This sample is to demonstrate azure IoT client concepts only and is not a guide design principles or style | |
| // Checking of return codes and error values shall be omitted for brevity. Please practice sound engineering practices | |
| // when writing production code. |
| #!/bin/bash | |
| set +e | |
| set +x | |
| VM_NAME="$1" | |
| function isInvalid() { | |
| INVALID=$(ipcalc "$1" | grep -c INVALID) | |
| if [ "${INVALID}" -gt 0 ]; then |