Skip to content

Instantly share code, notes, and snippets.

View mkvoya's full-sized avatar
😋
<=

Mingkai Dong mkvoya

😋
<=
View GitHub Profile
@mkvoya
mkvoya / dblatex.rb
Last active January 27, 2022 15:15 — forked from phracker/dblatex.rb
Updated dblatex install formula for Homebrew
require 'formula'
# INSTRUCTIONS FROM MK
# You can download the file and run `brew install ./dblatex.rb`
# BEFORE INSTALLING THIS FORMULA:
# 1.) Install MacTex or BasicTex from https://www.tug.org/mactex/
# 2.) Make yourself the owner of the tex installation directory:
# $ sudo chown -R "$(id -un):$(id -gn)" /usr/local/texlive
# 3.) Update tlmgr and install required packages
@mkvoya
mkvoya / MemSpeed.cpp
Created December 18, 2020 02:58 — forked from mmozeiko/MemSpeed.cpp
Memory copy benchmark
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <xmmintrin.h> // SSE
#include <immintrin.h> // AVX
#ifdef _WIN32
#include <intrin.h> // for __movsb, __movsd, __movsq