Install the last version of DL4MicEverywhere (Virtual machines have already DL4MicEverywhere installed)
I. Go to the DL4MicEverywhere website.
II. Click on "Code" and "Download zip".
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
I. Go to the DL4MicEverywhere website.
II. Click on "Code" and "Download zip".
https://www.nerdfonts.com/font-downloads
The following solution thanks to @hackerzgz & @snacky101 will install all nerd fonts;
brew tap homebrew/cask-fonts
brew search '/font-.*-nerd-font/' | awk '{ print $1 }' | xargs -I{} brew install --cask {} || true
import numpy as np | |
from tqdm import trange | |
def get_neighbour_matrix(x, L, R): | |
dx = np.subtract.outer(x[:, 0], x[:, 0]) | |
dy = np.subtract.outer(x[:, 1], x[:, 1]) | |
dx[dx > (L / 2) ** 2] -= (L / 2) ** 2 | |
dy[dy > (L / 2) ** 2] -= (L / 2) ** 2 | |
pair_dist = dx ** 2 + dy ** 2 |
If you've ever customized your app icons or played around with Shortcuts (previously called Workflow), you probably know how important URL scheme names are. Nearly all iOS apps assign themselves one of these names, and you need to know them if you want to add custom icons to your home screen or create a Shortcuts workflow that opens an app on your iPhone up. Finding the URL scheme name, also known as a URI scheme, for a particular app is not easy. First, you have to download the IPA file for the app — a difficult task since the iTunes 12.7 update removed iOS apps from it. When you finally find the IPA, you have to turn it into a ZIP file, show the contents of the app package, then hunt for the specific PLIST file that contains the URL schemes. It's a lot of work.
This example
<PackageReference Include="SmartAnalyzers.CSharpExtensions.Annotations" Version="3.10.0" /> | |
<PackageReference Include="AsyncSuffixAnalyzer" Version="1.0.6285.32977" PrivateAssets="All"/> | |
<PackageReference Include="Lindhart.Analyser.MissingAwaitWarning" Version="1.2.0" PrivateAssets="All"/> | |
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.7" PrivateAssets="All"/> | |
<PackageReference Include="AsyncFixer" Version="1.1.6" PrivateAssets="All"/> | |
<PackageReference Include="Roslynator.Analyzers" Version="2.2.0" PrivateAssets="All"/> | |
<PackageReference Include="Roslynator.CodeFixes" Version="2.0.0" PrivateAssets="All" /> | |
<PackageReference Include="Nopen.NET" Version="1.0.0" PrivateAssets="All" /> | |
<PackageReference Include="Apex.Analyzers.Immutable" Version="1.2.5" PrivateAssets="All" /> | |
<PackageReference Include="Apex.Analyzers.Immutable.Attributes" Version="1.0.0" /> |
#include "esp_camera.h" | |
#include <WiFi.h> | |
#include "esp_timer.h" | |
#include "img_converters.h" | |
#include "Arduino.h" | |
#include "fb_gfx.h" | |
#include "soc/soc.h" | |
#include "soc/rtc_cntl_reg.h" | |
#include "esp_http_server.h" |
import contextlib | |
import OpenSSL.crypto | |
import os | |
import requests | |
import ssl | |
import tempfile | |
@contextlib.contextmanager | |
def pfx_to_pem(pfx_path, pfx_password): | |
''' Decrypts the .pfx file to be used with requests. ''' |
For reference when raising the Nginx Proxy and companion Let's Encrypt Setup.
sudo apt-get update | |
sudo apt-get install -y apt-transport-https ca-certificates | |
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list | |
sudo apt-get update | |
sudo apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual | |
sudo apt-get install -y docker-engine | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.9.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
sudo groupadd docker |