Skip to content

Instantly share code, notes, and snippets.

View bdelmas's full-sized avatar

Benjamin Delmas bdelmas

View GitHub Profile
let test = [1, 2, 3, 3, 4, 4, 4, 4]
const getTotal = list => {
let result = new Map()
list.map(e => {
let total = result.get(e)
if (total !== undefined) {
result.set(e, total + 1)
} else {
@bdelmas
bdelmas / Justfile
Created January 2, 2019 09:13
A Justfile where Rust compiles with PGO
all: check doc build build-release test
build:
time cargo build --all
build-release:
time cargo build --all --release
check:
cargo check --all
doc:
cargo doc --all