Skip to content

Instantly share code, notes, and snippets.

@vimtaai
vimtaai / markdown-flavors.md
Last active June 22, 2024 07:34
Comparison of features in various Markdown flavors

Comparison of syntax extensions in Markdown flavors

I created a crude comparison of the syntax of the various common Markdown extensions to have a better view on what are the most common extensions and what is the most widely accepted syntax for them. The list of Markdown flavors that I looked at was based on the list found on CommonMark's GitHub Wiki.

Flavor Superscript Subscript Deletion*
Strikethrough
Insertion* Highlight* Footnote Task list Table Abbr Deflist Smart typo TOC Math Math Block Mermaid
GFM
@ConstantineLignos
ConstantineLignos / openblas_ubuntu_compilation.txt
Last active March 22, 2021 00:43
Set up OpenBLAS with NO_AFFINITY=1 to make it most useful for applications such as R.
1. Check out OpenBlas from https://github.com/xianyi/OpenBLAS and check out the master branch.
2. Build and install to /opt:
a.) Multi-threaded:
make NO_AFFINITY=1
b.) Single-threaded:
sudo make PREFIX=/opt install
3. Configure it as your BLAS of choice:
sudo update-alternatives --install /usr/lib/libblas.so.3gf libblas.so.3gf /opt/lib/libopenblas.so.0 50
4. Check the configuration to make sure it's selected
update-alternatives --config libblas.so.3gf
@jboner
jboner / latency.txt
Last active July 6, 2024 18:55
Latency Numbers Every Programmer Should Know
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