Skip to content

Instantly share code, notes, and snippets.

;;"C:\Users\rnwol\.emacs.d\private\org-roam\packages.el"
(defconst org-roam-packages
'(org-roam))
(defun org-roam/init-org-roam ()
(use-package org-roam
:hook
(after-init . org-roam-mode)
:custom
(org-roam-directory "~/org-roam")
@malloryerik
malloryerik / latency.txt
Created September 6, 2018 23:57 — forked from eshelman/latency.txt
HPC-oriented Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference/hit 1.5 ns 4 cycles
Floating-point add/mult/FMA operation 1.5 ns 4 cycles
L2 cache reference/hit 5 ns 12 ~ 17 cycles
Branch mispredict 6 ns 15 ~ 20 cycles
L3 cache hit (unshared cache line) 16 ns 42 cycles
L3 cache hit (shared line in another core) 25 ns 65 cycles
Mutex lock/unlock 25 ns
L3 cache hit (modified in another core) 29 ns 75 cycles
@malloryerik
malloryerik / main.go
Last active June 20, 2018 03:09
Basic GET and POST in Go httprouter with CORS
package main
import (
"net/http"
"github.com/julienschmidt/httprouter"
"github.com/rs/cors"
"fmt"
"log"
"io/ioutil"
)