This file contains hidden or 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/sh | |
# | |
# Setup script for Mac with Homebrew / Homebrew-Cask | |
# | |
BASE_DIR='/usr/local' | |
BASE_BIN="$BASE_DIR/bin" | |
BASE_SHARE="$BASE_DIR/share" | |
BREW="$BASE_BIN/brew" |
This file contains hidden or 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
(require 'markdown-mode) | |
(setq my-markdown-gfm-command "/usr/local/bin/marked") | |
(setq my-markdown-command "/usr/local/bin/markdown") | |
(cond | |
((file-exists-p my-markdown-gfm-command) | |
(setq markdown-command my-markdown-gfm-command) | |
(setq markdown-command-needs-filename t)) | |
((file-exists-p my-markdown-command) |
We can make this file beautiful and searchable if this error is corrected: Any value after quoted field isn't allowed in line 1.
This file contains hidden or 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
abc "d"ef ghi |
This file contains hidden or 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
% cat composer.json | |
{ | |
"repositories": [ | |
{ | |
"type": "vcs", | |
"url": "https://github.com/yahoojapan/yconnect-php-sdk" | |
} | |
], | |
"require": { | |
"yahoojapan/yconnect-php-sdk": "dev-master" |
This file contains hidden or 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/sh | |
DIRS=`find ./ -type d -name .git -depth 3` | |
for D in $DIRS | |
do | |
pushd . > /dev/null | |
cd $D | |
echo `dirname $D` | |
git rev-parse --abbrev-ref HEAD | |
popd > /dev/null | |
done |
This file contains hidden or 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
❯ go test -bench . ./oviewer -benchmem | |
goos: darwin | |
goarch: amd64 | |
pkg: github.com/noborus/ov/oviewer | |
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz | |
BenchmarkParseString_Normal-16 2498 420860 ns/op 903698 B/op 20 allocs/op | |
BenchmarkParseString_AnsiEscape-16 865 1318269 ns/op 1074041 B/op 1221 allocs/op | |
BenchmarkParseString_ChromaTerm-16 451 2651899 ns/op 4406445 B/op 1470 allocs/op | |
BenchmarkDraw_Normal-16 358 2822820 ns/op 1261143 B/op 4304 allocs/op | |
BenchmarkDraw_AnsiEscape-16 298 3926522 ns/op 1427113 B/op 5582 allocs/op |
This file contains hidden or 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
❯ go test -bench . ./oviewer -benchmem | |
goos: darwin | |
goarch: amd64 | |
pkg: github.com/noborus/ov/oviewer | |
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz | |
BenchmarkParseString_Normal-16 2625 401734 ns/op 903699 B/op 20 allocs/op | |
BenchmarkParseString_AnsiEscape-16 1004 1210944 ns/op 1074032 B/op 1221 allocs/op | |
BenchmarkParseString_ChromaTerm-16 482 2405494 ns/op 4406411 B/op 1470 allocs/op | |
BenchmarkDraw_Normal-16 1731 697015 ns/op 728202 B/op 2442 allocs/op | |
BenchmarkDraw_AnsiEscape-16 787 1283360 ns/op 824947 B/op 3187 allocs/op |
OlderNewer