Skip to content

Instantly share code, notes, and snippets.

@mbrubeck
mbrubeck / rust-opt-level-measurements.txt
Last active May 2, 2022 22:35
Rust opt-level measurements
test environment
rustc 1.16.0-nightly (5d994d8b7 2017-01-05)
Thinkpad X1 Carbon Touch (2012)
Intel(R) Core(TM) i7-3667U CPU @ 2.00GHz
cpufreq-set -g performance
no other programs running
all results are after one run to warm up the cache
regex
opt-level = 3
@f0i
f0i / makefile
Last active May 21, 2019 03:33
Make task to watch file system changes and rebuild
all:
# do something
# watch requires inotify-tools
watch:
while true; \
do \
inotifywait ./ || exit && make all; \
sleep 0.5; \
done
@tomdale
tomdale / gist:3981133
Last active November 26, 2019 21:19
Ember.js Router API v2

WARNING

This gist is outdated! For the most up-to-date information, please see http://emberjs.com/guides/routing/!

It All Starts With Templates

An Ember application starts with its main template. Put your header, footer, and any other decorative content in application.handlebars.

<header>