This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; line numbers | |
(defun goto-line-x (orig-goto-line) | |
"Display line number on interactive goto-line." | |
(interactive) | |
(unwind-protect | |
(progn | |
(linum-mode 1) | |
(call-interactively orig-goto-line)) | |
(linum-mode -1))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[pdown]>[kpshift] | |
[up]>[down] | |
[down]>[up] | |
[delete]>[escape] | |
[home]>[lshift] | |
[pup]>[rshift] | |
[rwin]>[ralt] | |
[end]>[lwin] | |
[kp-pdown]>[kpshift] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::collections::HashMap; | |
use std::iter::IntoIterator; | |
use std::str::FromStr; | |
use std::usize; | |
use std::env; | |
use std::time::{Duration, Instant}; | |
const TEST_SIZE: usize = 100_000_000; | |
fn hash_test(n: usize) -> HashMap<usize, usize> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am akapav on github. | |
* I am akapav (https://keybase.io/akapav) on keybase. | |
* I have a public key whose fingerprint is 3C93 37D5 F44A 95D8 B54F 9B3F CEEC E23C D694 2A7F | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_____ _ |_ _|| | | | | |__ | | | '_ \ | | | | | | |_| |_| |_| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- http://www.bbc.co.uk/programmes/articles/5wkxjTtqRvq8Cyrrjxtk7tc/puzzle-for-today | |
local function str_comb(comb) | |
local str = "1" | |
local next = 2 | |
for i = 1, 8 do | |
local op = comb[i] | |
if (op == 0) then str = str .. "+" | |
elseif (op == 1) then str = str .. "-" | |
end | |
str = str .. tostring(next) |