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
{ | |
"files.autoSave": "afterDelay", | |
"files.autoSaveDelay": 1000, | |
// ファイルの終了時に行末のスペース削除 | |
"files.trimTrailingWhitespace": true, | |
"files.insertFinalNewline": true, | |
"python.linting.lintOnSave": true, | |
//Tabをスペースキーとして変換 | |
"[python]": { |
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 os | |
import glob | |
import subprocess | |
def exec_subprocess(cmd: str, raise_error=True): | |
child = subprocess.Popen(cmd, shell=True, | |
stdout=subprocess.PIPE, stderr=subprocess.PIPE) | |
stdout, stderr = child.communicate() | |
rt = child.returncode |
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
# prefix | |
unbind C-b | |
set -g prefix C-l | |
# マウスを有効化 | |
set-option -g mouse on | |
# エスケープタイムの修正 | |
set-option -sg escape-time 0 |
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
# prefix | |
unbind C-b | |
set -g prefix C-l | |
# マウスを有効化 | |
set-option -g mouse on | |
# 設定ファイルをリロードする | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" |
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 random | |
def make_model(text): | |
model = {} | |
bef_char = "[BOS]" | |
for char in text: | |
if bef_char != "[BOS]": | |
if bef_char not in model: | |
model[bef_char] = [] |
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
# prefix | |
unbind C-b | |
set -g prefix C-l | |
# マウスを有効化 | |
set-option -g mouse on | |
# 設定ファイルをリロードする | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" |
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
print(''.join(sorted(S))) |
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
#include <bits/stdc++.h> | |
using namespace std; | |
#define INF 1001000100010001000 | |
#define MOD 1000000007 | |
#define EPS 1e-10 | |
#define int long long | |
#define rep(i, N) for (int i = 0; i < N; i++) | |
#define Rep(i, N) for (int i = 1; i < N; i++) |
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
#include <bits/stdc++.h> | |
using namespace std; | |
#define INF 1001000100010001000 | |
#define MOD 1000000007 | |
#define EPS 1e-10 | |
#define int long long | |
#define rep(i, N) for (int i = 0; i < N; i++) | |
#define Rep(i, N) for (int i = 1; i < N; i++) |
NewerOlder