| 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 |
| import asyncio | |
| import smtplib | |
| import ssl | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText | |
| from socket import gaierror | |
| import base64 | |
| import datetime as dt | |
| import imghdr | |
| import json |
This License is currently being reviewed and may be updated any time. The changes made to this License have immediate effect after its update.
You can use the Drawings for whatever you want except redistributing or reselling them in any of their forms, separated or packaged.
You can use them for unlimited End Products, either paid or free, for unlimited End Clients, as long as the End Product is not directly related or in competition with the Drawings and/or excalidraw.art.
Ricardo Ander-Egg (the “Licensor”) grants you an on-going, non-exclusive license to use the Drawings (the “License”).
An individual license grants permission to the Licensee to access and use the Drawings (the “Individual License”).
A team license grants permission to all Employees and Contractors of the Licensee to access and use the Drawings (the “Team License”).
You can:
Save nbread somewhere in your $PATH and give it permissions with chmod +x nbread
Add the following alias to your shell:
alias rgnb="rg --pre nbread --pre-glob '*.ipynb' --type-add 'ipynb:*.ipynb' -tipynb"Now you can run rgnb sqlite to search for "sqlite" in all your *.ipynb files.
| import binascii | |
| import sqlite3 | |
| import collections | |
| import math | |
| import re | |
| RE_SPLIT = re.compile(r'[^A-Za-z0-9_]+') | |
| def tokenize(s): | |
| # this is super basic and should be replaced with a real tokenizer |