Skip to content

Instantly share code, notes, and snippets.

#!/usr/intel/pkgs/perl/5.14.1/bin/perl
use feature 'say';
use Data::Dumper;
use warnings;
use strict;
use Enbugger 'trepan';
(defun $magit-status-in-dir (dir)
"limit magit status to directory"
(interactive "D")
(require 'magit)
(let* ((root (vc-git-root dir))
(dir (list (file-relative-name dir root)))
(magit-status-mode-hook (cons (lambda () (setq-local magit-diff-section-file-args dir))
magit-status-mode-hook)))
(magit-status-internal root)))
@CeleritasCelery
CeleritasCelery / keyboardio.ino
Last active July 22, 2019 15:00
keyboardio layout
// -*- mode: c++ -*-
// Copyright 2016 Keyboardio, inc. <[email protected]>
// See "LICENSE" for license details
#ifndef BUILD_INFORMATION
#define BUILD_INFORMATION "locally built"
#endif
// The Kaleidoscope core
#include "Kaleidoscope.h"
chars::count/en_0001 time: [581.80 ps 581.98 ps 582.20 ps]
change: [-0.1886% -0.0146% +0.1360%] (p = 0.87 > 0.05)
No change in performance detected.
chars::count/en_0010 time: [3.7225 ns 3.7235 ns 3.7249 ns]
change: [-0.0618% +0.0984% +0.2572%] (p = 0.26 > 0.05)
No change in performance detected.
chars::count/en_0100 time: [29.956 ns 29.971 ns 29.989 ns]
change: [-0.1434% +0.0406% +0.2286%] (p = 0.69 > 0.05)
No change in performance detected.
chars::count/en_1000 time: [307.75 ns 307.84 ns 307.95 ns]
chars::count/en_0100 time: [4.9684 ns 4.9717 ns 4.9759 ns]
change: [-12.083% -11.792% -11.514%] (p = 0.00 < 0.05)
Performance has improved.
chars::count/en_1000 time: [22.416 ns 22.466 ns 22.524 ns]
change: [-31.965% -31.814% -31.643%] (p = 0.00 < 0.05)
Performance has improved.
chars::count/en_10000 time: [184.25 ns 185.88 ns 189.00 ns]
change: [-38.838% -38.538% -38.081%] (p = 0.00 < 0.05)
Performance has improved.
chars::count/jp_0102 time: [5.5962 ns 5.6030 ns 5.6119 ns]
_inlined:
.cfi_startproc
sub sp, sp, #144
.cfi_def_cfa_offset 144
stp x28, x27, [sp, #48]
stp x26, x25, [sp, #64]
stp x24, x23, [sp, #80]
stp x22, x21, [sp, #96]
stp x20, x19, [sp, #112]
stp x29, x30, [sp, #128]
__ZN11str_indices5chars5count17h3f56c582aa991a2cE:
.cfi_startproc
cmp x1, #16
b.hs LBB1_4
mov x8, #0
cbz x1, LBB1_3
LBB1_2:
ldrb w9, [x0], #1
and w9, w9, #0xc0
cmp w9, #128