- 右手でマウスを操作するので、 ctrl, gui キーは左に置きたい
- gui キーが押しやすい必要性は高くない
- gui キーが左に来るなら、 alt は右に置きたい
- i3wm の modkey を alt にするため
- 左親指で space を押したい
- IME 切り替えは ctrl+space だが、 alt+space, gui+space に変えるなどしても良い
- 右親指で enter を押したい
- 矢印キー操作は hjkl でやりたいので、このレイヤ切り替えキーは左に置きたい
- ctrl+矢印 (macOS のワークスペース切り替え) は押しやすくしたい
[]{}
は、レイヤ切り替えが必要なら右側にあるのが良い
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
RECIPIENT := [email protected] | |
all: | |
encrypt: _output/encrypted.txt.gpg.asc | |
decrypt: _output/decrypted.txt | |
sign: _output/message.txt.sig.asc |
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
%% more information available at: | |
%% * https://erlang.org/doc/man/dbg.html | |
%% * https://stackoverflow.com/questions/1954894/using-trace-and-dbg-in-erlang | |
%% start tracer | |
dbg:tracer(). | |
%% specify what to trace | |
dbg:p(all, c). %% calls to any of specified functions | |
dbg:p(all, [c, m]). %% calls and messages |
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
use strict; | |
use utf8; | |
binmode(STDOUT, ":utf8"); | |
print "\x{1f96b}\n"; # OK | |
print "\x{1f96c}\n"; # NG | |
#... | |
print "\x{1f97b}\n"; # NG | |
#... |
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 /path/to/file | awk '$10 ~ /foo/ && match($10, /id=([0-9]+)/, matched) { print matched[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
-module(bench). | |
-export([ | |
run/0 | |
]). | |
is_valid1(V) -> | |
V >= 1 andalso V =< 7. | |
-define(VALID_SET, sets:from_list([1, 2, 3, 4, 5, 6, 7])). |
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
package main | |
import ( | |
"flag" | |
"fmt" | |
"go/ast" | |
"go/parser" | |
"go/token" | |
"io" | |
"os" |
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
-module(scheduler). | |
-export([ | |
run/0 | |
]). | |
-define(MAX_CONCURRENCY, 3). | |
run() -> | |
Msgs = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], |
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
STATIC := static-app | |
DYNAMIC := dynamic-app | |
all: $(STATIC) $(DYNAMIC) | |
$(MAKE) -f build.mk check FILE=$(STATIC) | |
$(MAKE) -f build.mk check FILE=$(DYNAMIC) | |
$(STATIC): | |
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build --ldflags '-extldflags "-static"' -o $@ |
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
package main | |
import ( | |
"fmt" | |
"os" | |
"time" | |
) | |
var format = "2006/01/02 15:04:05" |