Skip to content

Instantly share code, notes, and snippets.

View 1119-2916's full-sized avatar
🚑
Oozora Subaru

T.Ikeda / Ti11192916 1119-2916

🚑
Oozora Subaru
  • Tokyo
View GitHub Profile
@1119-2916
1119-2916 / settings.json
Created April 28, 2023 13:31
vscode setting
{
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 1000,
// ファイルの終了時に行末のスペース削除
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"python.linting.lintOnSave": true,
//Tabをスペースキーとして変換
"[python]": {
@1119-2916
1119-2916 / volume_balancer.py
Created February 28, 2022 18:59
'music_folder/raw' の音量を 0dB 調整して 'music_folder' に入れる
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
# prefix
unbind C-b
set -g prefix C-l
# マウスを有効化
set-option -g mouse on
# エスケープタイムの修正
set-option -sg escape-time 0
@1119-2916
1119-2916 / windows tmux conf
Last active April 16, 2024 02:44
windows tmux conf
# prefix
unbind C-b
set -g prefix C-l
# マウスを有効化
set-option -g mouse on
# 設定ファイルをリロードする
bind r source-file ~/.tmux.conf \; display "Reloaded!"
@1119-2916
1119-2916 / markov_soboro.py
Created June 1, 2020 17:01
マルコフジソボロドントリラ
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] = []
@1119-2916
1119-2916 / F sha tmux.conf
Created February 13, 2020 03:31
F sha de
# prefix
unbind C-b
set -g prefix C-l
# マウスを有効化
set-option -g mouse on
# 設定ファイルをリロードする
bind r source-file ~/.tmux.conf \; display "Reloaded!"
なつみかん
あるみかん
あるみ
あるかり
あいかぎ
めいかく
めか
かめ
かいだめ
だめ
@1119-2916
1119-2916 / sort.py
Created December 4, 2019 08:13
sort_nazonazo_
print(''.join(sorted(S)))
@1119-2916
1119-2916 / f.cpp
Created October 3, 2019 09:58
ABC127F
#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++)
@1119-2916
1119-2916 / 2018domesticMOGI_d.cpp
Created July 1, 2018 13:45
2018 年国内予選模擬 D 問題
#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++)