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
#!/bin/env/python3 | |
def even(x: int) -> int: | |
return x // 2 | |
def odd(x: int) -> int: | |
return 3 * x + 1 | |
def collatz(memo: set[int], x: int) -> None: | |
original = x |
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
import re | |
import itertools | |
import collections | |
import textwrap | |
import random | |
import shelve | |
import contextlib | |
eucalyn_lessons = [ | |
('it', '', 'home row-first finger', 'ngrams'), |
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
// Copyright 2019 Yoshi Yamaguchi | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
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
% benchstat bubble.txt selection.txt | |
name old time/op new time/op delta | |
Sort-4 29.4ns ± 1% 29.1ns ± 0% -1.00% (p=0.016 n=5+4) | |
name old compares/op new compares/op delta | |
Sort-4 15.0 ± 0% 15.0 ± 0% ~ (all equal) | |
name old alloc/op new alloc/op delta | |
Sort-4 0.00B 0.00B ~ (all equal) |
- 2019-07-29 European Concert - The Modern Jazz Quartet
- 2019-07-30 Giant Steps - John Coltrane
- Google Play Music
- Spotify
- Amazon Prime Music
- 2019-07-31 My Favorite Things - John Coltrane
- 2019-08-01 Blue Train - John Coltrane
- [Google Play Music](https://play.google.c
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
$ benchstat 556b3f5/benchonly.txt 2cc17bc/benchonly.txt | |
name old time/op new time/op delta | |
CodeDecoder-8 13.1ms ± 3% 11.5ms ± 1% -12.36% (p=0.000 n=29+29) | |
UnicodeDecoder-8 433ns ± 1% 363ns ± 1% -16.09% (p=0.000 n=30+30) | |
CodeUnmarshalReuse-8 13.0ms ± 1% 11.3ms ± 2% -13.38% (p=0.000 n=27+28) | |
name old speed new speed delta | |
CodeDecoder-8 148MB/s ± 3% 169MB/s ± 1% +14.10% (p=0.000 n=29+29) | |
UnicodeDecoder-8 32.3MB/s ± 1% 38.5MB/s ± 1% +19.20% (p=0.000 n=29+30) |
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
% curl go.pyspa.org/brbundle | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<meta name="go-import" content="go.pyspa.org/brbundle git https://github.com/pyspa/brbundle"> | |
<meta name="go-source" content="go.pyspa.org/brbundle https://github.com/pyspa/brbundle https://github.com/pyspa/brbundle/tree/master{/dir} https://github.com/pyspa/brbundle/blob/master{/dir}/{file}#L{line}"> | |
<meta http-equiv="refresh" content="0; url=https://godoc.org/go.pyspa.org/brbundle/"> | |
</head> | |
<body> |
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
// Copyright 2018 Yoshi Yamaguchi | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
NewerOlder